Category Covered

how to create xml sitemap on cakephp  

Here is an simple way to create dynamic sitemap on cakephp. create a controll named "sitemaps_controller.php" and paste the following code <?php class SitemapsController extends AppController{     var $name = 'Sitemaps';     var $uses = array('Content');     var $components = array('RequestHandler');     var $helpers = array('Time');       &  
By: Tech writer  |   Total Read: 5568  |   Read more..

how to use or condition in cakephp  

Here is a example on using or codition on cakephp         debug($this->data['NewsletterEmail']); /*Array ( [0] => Array ( [NewsletterEmail.id] => 4 ) [1] => Array ( [NewsletterEmail.id] => 1 ) )*/
       
        $str = array('OR' => $this  
By: mimosa  |   Total Read: 756  |   Read more..

How to change the cakephp submit button label  

To change the submit button lable on cakephp use as following <?php echo $this->Form->end(array('label' => 'Send Newsletter 2 seleted'));?>  
By: Tech writer  |   Total Read: 885  |   Read more..

Cake php cache clear  

Some times when we write a new query in our Cake applicaion we saw that new query made no change. In Cake the previous query is cached  very often. The Cake  will clear cached data if the required view is modified.

For example, if a cached view uses data from the User model, and a new INSERT, DELETE or UPDATE, query made to the User table the cache for that Model view need to be cleared.

Here my root drive  
By: Tech writer  |   Total Read: 1060  |   Read more..

cakephp cms  

I used some cakephp based blog and cms which are good to me. I think if you love cakephp then you can try the followings. Croogo cakephp based blog and cms.   cakeCMS cakephp based blog and cms.   SiteCake cakephp based blog and cms.    
By: Tech writer  |   Total Read: 2423  |   Read more..

How to make RSS on cakephp  

To make RSS feed on cakphp you will be need to follow the steps 1. at first include this two line in controller

    var $helpers = array('Rss');
    var $components = array('RequestHandler');

    2. then make in function in controller
  
    function rss()
    {
        
By: Tech writer  |   Total Read: 1878  |   Read more..

how to sent mail on cakephp framework  

If you want to send mail in cakephp framework then you need to add the email component on the controller var $components = array('Email'); Then use the following code where you want to send mail                     $this->Email->to = 'to@gmail.com;
                  &  
By: Tech writer  |   Total Read: 803  |   Read more..

send smtp email in cakephp  

  Add email component on your controller

var $components = array('Email'); on your fuction add the following lines to send smtp mail on cakephp function MyEmail(){
$this->Email->to = 'abc@gmail.com';
$this->Email->subject = 'your mail subject will go here';
$this->Email->from = 'youremail@gmail.com';
$this->Email->template = 'mytemplate'; // in /views/elements/email/tex  
By: Tech writer  |   Total Read: 3598  |   Read more..

cakephp pagination condition  

How can i set conditions on cakephp paginate? Try to follow the sample hope it will help you. $this->paginate = array('limit' => 10, 'page' => 1,   'conditions' => array('Content.category_id' => '1'),
    'order'=>array('name'=>'asc'),       
    );  
By: Tech writer  |   Total Read: 4761  |   Read more..

cakephp function without view  

If you are going to create a funcation without view in cakephp you need the following line at the top of a function. $this->autoRender = false;  
By: Tech writer  |   Total Read: 729  |   Read more..
Top 15 Posts
Google+