Re: Yii Framework
@Hill180 That is a dangerous question to ask because of course it comes down to preference and what you are most familiar with. That being said, I have used both CakePHP and Yii, I have more experience with and am more comfortable with CakePHP, and would have to agree with your assessment. I have gone through a great Yii training book, and built several apps with it. At the company where I work we also primarily use Yii as our PHP framework and have built some advanced applications with jQuery, and other app helpers. My preference is still for CakePHP due to it's ease and convenience of many things including Request Handling, Authentication, Helpers, and Vendor Handling (tcpdf, PHPExcel, and various jQuery libraries). The biggest thing that I could suggest is to read up on the features, understand what it is you want to get out of the Framework, and then become an expert at it's efficiencies :) My two cents. On Tuesday, May 22, 2012 7:35:18 PM UTC-7, Hill180 wrote: > > This is not a holy war statement. > > After looking at Yii, getting the two books and reading and watching a lot > of the tutorials, making a small app in Yii. I think I am going to stay > with Cake. > > 1. Cakephp's Documentation is amazing. > 2. Great Community > 3. Familiar with CakePHP > 4. CakePHP is a solid framework. > > I like Yii's Search Widgets and Ajax, but I think I would prefer doing the > Ajax by hand. Don't need to worry about Composite Keys. > > What are your thoughts on Yii? Tried Yii? Please be constructive.. I > know this forum is bias to CakePHP, but I just want a general opinion if > you tried it. > On Tuesday, May 22, 2012 7:35:18 PM UTC-7, Hill180 wrote: > > This is not a holy war statement. > > After looking at Yii, getting the two books and reading and watching a lot > of the tutorials, making a small app in Yii. I think I am going to stay > with Cake. > > 1. Cakephp's Documentation is amazing. > 2. Great Community > 3. Familiar with CakePHP > 4. CakePHP is a solid framework. > > I like Yii's Search Widgets and Ajax, but I think I would prefer doing the > Ajax by hand. Don't need to worry about Composite Keys. > > What are your thoughts on Yii? Tried Yii? Please be constructive.. I > know this forum is bias to CakePHP, but I just want a general opinion if > you tried it. > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Yii Framework
Welcome to CakePHP community, kudos on your decision :) I find CakePHP more mature, easier to extend and with lots of awesome plugins. I also think it is better structured when compared to yii. On Tuesday, May 22, 2012 10:05:18 PM UTC-4:30, Hill180 wrote: > > This is not a holy war statement. > > After looking at Yii, getting the two books and reading and watching a lot > of the tutorials, making a small app in Yii. I think I am going to stay > with Cake. > > 1. Cakephp's Documentation is amazing. > 2. Great Community > 3. Familiar with CakePHP > 4. CakePHP is a solid framework. > > I like Yii's Search Widgets and Ajax, but I think I would prefer doing the > Ajax by hand. Don't need to worry about Composite Keys. > > What are your thoughts on Yii? Tried Yii? Please be constructive.. I > know this forum is bias to CakePHP, but I just want a general opinion if > you tried it. > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Yii Framework
This is not a holy war statement. After looking at Yii, getting the two books and reading and watching a lot of the tutorials, making a small app in Yii. I think I am going to stay with Cake. 1. Cakephp's Documentation is amazing. 2. Great Community 3. Familiar with CakePHP 4. CakePHP is a solid framework. I like Yii's Search Widgets and Ajax, but I think I would prefer doing the Ajax by hand. Don't need to worry about Composite Keys. What are your thoughts on Yii? Tried Yii? Please be constructive.. I know this forum is bias to CakePHP, but I just want a general opinion if you tried it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CakePHP 2.1.3 & 2.2.0-RC1 released
The CakePHP core team is proud to announce the immediate availability of both CakePHP 2.1.3 [1], and 2.2.0-RC1[2]. 2.1.3 is a bugfix release for the 2.1.x branch, while 2.2.0-RC1 is the first release candidate for 2.2.x. ## CakePHP 2.1.3 There are a number of bugfixes in 2.1.3, the most notable of these changes are: * ControllerTestCase no longer overwrites GET/POST when simulating requests. * Xml::fromArray() now properly handles out of sequence numeric keys. * TranslateBehavior and Model::saveAll() now correctly save translations in hasMany associations. * Router::queryString() now correctly handles appending to existing querystrings. * Model::saveMany(), saveAssociated() correctly save data that was modified in a beforeValidate() callback. * View now correctly re-uses the Controller event manager instance. * Model::saveAll() and default values now behave better. You can download a packaged release from http://pear.cakephp.org or get a zip file from github[3]. ## CakePHP 2.2.0-RC1 Since the release of CakePHP 2.2.0-beta a number of new features and enhancements have been merged in: ### Timezone support in CakeTime class The $userOffset parameter has been replaced with $timezone parameter in all relevant functions. So instead of numeric offset you can now pass in a timezone string or DateTimeZone object. Passing numeric offsets for $timezone parameter is still possible for backwards compatibility. `CakeTime::timeAgoInWords()` had the accuracy option added. This option allows you to specify how accurate formatted times should be. A few new methods were added: * CakeTime::toServer() * CakeTime::timezone() * CakeTime::listTimezones() The $dateString parameter in all methods now accepts a DateTime object. A new config parameter ‘Config.timezone’ is available which you can set to user’s timezone string. ### Dynamically modify and create validation rules A new object `ModelValidator` was added to delegate the work of validating model data, it should be transparent to the application and fully backwards compatible. It also exposes a rich API to add, modify and remove validation rules. Check docs for this object in http://book.cakephp.org/2.0/en/models/data-validation.html#dynamically-change-validation-rules ### Generate config files on the fly `Configure::dump()` was added. It is used to persist configuration data in durable storage like files. Both PhpReader and IniReader work with it. ### CakeLog The CakeLog class now accepts the same log levels as defined in RFC 5424. Several convenience methods have also been added in `CakeLog` class: * emergency * alert * critical * error * warning * notice * info * debug Also log engines gained a `scope` setting to make them log only the contexts they are interested in. You *need* to add the following lines to your Config/bootsrap.php file: // Add logging configuration. CakeLog::config('debug', array( 'engine' => 'FileLog', 'types' => array('notice', 'info', 'debug'), 'file' => 'debug', )); CakeLog::config('error', array( 'engine' => 'FileLog', 'types' => array('warning', 'error', 'critical', 'alert', 'emergency'), 'file' => 'error', )); ### Misc changes * FormHelper::inputDefaults() setter/getter added. * Added ability for Auth login to use contain. * Supported Japanese legacy charset and changed to use upper case charset in Content-Type line in CakeEmail. * Improved doc blocks in all functions, mixed params now explicitly say which types are accepted. ### Links * [1] http://cakephp.org/changelogs/2.1.3 * [2] http://cakephp.org/changelogs/2.2.0-RC1 * [3] http://github.com/cakephp/cakephp/zipball/2.1.3 * [4] http://github.com/cakephp/cakephp/zipball/2.2.0-RC1 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: adding a search function
try https://github.com/cakedc/search Am Dienstag, 22. Mai 2012 19:35:29 UTC+2 schrieb webguy262: > > How do I add a search function to an existing CakePHP site I inherited? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
adding a search function
How do I add a search function to an existing CakePHP site I inherited? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to redirect two pages back?
I created the following in my controller, just setReferer when you want to track where you want to go back to. function origReferer(){ return $this->Session->read('referer'); } function setReferer(){ $this->Session->write('referer', $this->referer()); } eg: function edit($id){ if (empty($this->request->data)) { $this->request->data = $this->ModelToEdit->read(null, $id); $this->setReferer(); } } On Sunday, April 15, 2012 2:15:20 PM UTC-6, Daniel wrote: > > I am using the following code to go back a page, but the problem is > that the action is an "add" one so it just goes back to an empty "add" > form: > > if ($this->request->is('post')) { > // blah blah ... > if ($this->Inemail->save($this->request->data)) { > // blah blah ... > $this->redirect($this->referer()); > > I think what I need to do is go back two pages. Is this possible? > > Thanks. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to redirect two pages back?
I use this in AppController: function origReferer(){ return $this->Session->read('referer'); } function setReferer(){ $this->Session->write('referer', $this->referer()); } This way I can cross multiple pages and keep track of where I want to refer them back too using $this->redirect($this->origReferer()); On Sunday, April 15, 2012 2:15:20 PM UTC-6, Daniel wrote: > > I am using the following code to go back a page, but the problem is > that the action is an "add" one so it just goes back to an empty "add" > form: > > if ($this->request->is('post')) { > // blah blah ... > if ($this->Inemail->save($this->request->data)) { > // blah blah ... > $this->redirect($this->referer()); > > I think what I need to do is go back two pages. Is this possible? > > Thanks. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Need help populating a select box
Ok, I am somewhat new to cake, have spent the past two days on this and I am just not getting it. Hope someone can shed some light on it for me. I have two tables: product_icons id (int) product_id (int, foreign key to a products table) icon_id (int, foreign key to product_icon_types table) sort_order (int) product_icon_types id (int) filename (varchar 255) description (text) icon.php model: array('foreignKey' => 'icon_id')); } ?> icon_category.php model: array('foreignKey' => 'icon_id')); } ?> icons_controller.php: Session->read('logged')){ $this->redirect(array('controller' => 'login', 'action' => 'login')); } } function index(){ $this->assignFields(); } function edit($id = null) { $this->Icon->id = $id; $product_id = $this->data['Icon']['product_id']; if (empty($this->data)) { $this->data = $this->Icon->read(); } else { $this->Icon->save($this->data); $this->redirect(array('controller' => 'icons', 'action' => 'index', 'product_id' => $product_id)); } } function add(){ $product = $this->Product->find(array('Product.id' => $this- >data['Icon']['icon'])); $data = array('Icon' => array('product_id' => $product['Product'] ['id'], 'product_id' => $product['Product']['id'], 'sort_order' => $this->data['Icon']['sort_order'], 'icon_id' => $this->data['Icon']['icon_num'])); $this->Icon->save($this->data); $this->redirect(array('action' => 'index', 'product_id' => $this- >data['Icon']['product_id'])); } function delete($id){ $this->Icon->delete($id); $this->redirect(array('action' => 'index', 'product_id' => $this- >params['named']['product_id'])); } function assignFields(){ $productId = $this->params['named']['product_id']; $product = $this->Product->find(array('Product.id' => $productId)); $this->set('product', $product); $products = $this->Product->findAll('Product.category_id IS NOT NULL'); $icons = $this->Icon->findAll(array('product_id' => $this- >params['named']['product_id'])); $pr = array(); foreach($products as $icon){ $pr[$icon["Product"]['id']] = $icon['Product']['model_name']; } $this->set('products', $pr); $this->set('icons', $icons); } } ?> index.ctp: input('icon_num', array('type' => 'select', 'options' => $icons, 'label' => 'Choose Icon ID:'))?> The select is being populated with fields from both the icons tables as well as the products table. I really ONLY want to display the filename field from the IconCategory model along with storing the id into the product_icons' icon_id field. Hope this makes sense. Thanks for any help. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Oracle
On May 22, 11:58 am, oDiN wrote: > I dont have problems with the prefix table .. :) > When you connect as the owner of the database, you don't need to use the prefix. But when you grant selective access to another user, he generally needs to say schema_name.table_name. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
validation and save function is giving problem in some contoller
Hello All, I have baked my controller , view, and model from console and everything written properly for one of my table named "homepage_dynamic_contents" But When i am going to try add a new content it breaks. neither validation works nor data is saved. Please help. I know this is silly mistake. thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Oracle
Have you been able to use any conditionals in your find() calls? I can't use even the simplest ones. See this thread: http://groups.google.com/group/cake-php/browse_thread/thread/234f4a33b862d79a# On May 22, 4:31 pm, oDiN wrote: > I have update the blog post. Check the latest code at Bitbucket. Also the > stored procedure works fine too in CakePHP 2.1.2 > > > > > > > > On Monday, 21 May 2012 20:46:46 UTC+8, rahajiyev wrote: > > > OMG, I just succeeded in getting paginator to work properly, with > > sorting and all that! Apart from what was said in the tutorial above, > > I also needed to tweak function describe() in Oracle.php. > > > The line where it says > > $sql = 'SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH FROM > > all_tab_columns WHERE table_name = \''; > > > Changed > > $sql .= strtoupper($this->fullTableName($model)) . '\''; > > to > > $sql .= strtoupper($model->useTable) . '\''; > > > Because WHERE table_name=prefix.my_table_name returns 0 results as > > compared to my_table_name with no prefix part. > > So far so good. If only I could get simple updates to work, life would > > be beautiful :) Haven't tried that yet. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
find conditions fatal error
I'm trying to use ported Oracle support with Cake 2.1.2 (thanks to http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/) Unfortunately this code fails: $this->set('hpans', $this->CrefTab->find('first', array('conditions' => array('cref_no LIKE' => "%$hpan"; Fatal error: Call to a member function quote() on a non-object in /var/ www/milli/cakephp/lib/Cake/Model/Datasource/DboSource.php on line 326 in fact any kind of array key fails instantly, except for numeric strings. Please help... I just must use Oracle. Here what line 326 in DboSource.php says: switch ($column) { ... case 'string': case 'text': return $this->_connection- >quote($data, PDO::PARAM_STR); So $this->_connection isn't an object. It's probably because Cake 1.x Oracle didn't support PDO. How can I work around this? Any tips? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Oracle
I have update the blog post. Check the latest code at Bitbucket. Also the stored procedure works fine too in CakePHP 2.1.2 On Monday, 21 May 2012 20:46:46 UTC+8, rahajiyev wrote: > > OMG, I just succeeded in getting paginator to work properly, with > sorting and all that! Apart from what was said in the tutorial above, > I also needed to tweak function describe() in Oracle.php. > > The line where it says > $sql = 'SELECT COLUMN_NAME, DATA_TYPE, DATA_LENGTH FROM > all_tab_columns WHERE table_name = \''; > > Changed > $sql .= strtoupper($this->fullTableName($model)) . '\''; > to > $sql .= strtoupper($model->useTable) . '\''; > > Because WHERE table_name=prefix.my_table_name returns 0 results as > compared to my_table_name with no prefix part. > So far so good. If only I could get simple updates to work, life would > be beautiful :) Haven't tried that yet. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
HABTM deep conditions
Hi everybody. Need help with a problem that drives me crazy:) Suppose you have those model relations: Offer HABTM Category How would you build the find conditions to find all the categories that have at least one offer. In the same time the Offer should be Offer.enabled => 1. So find all the categories with at least one enabled offer. The conditions to check in the offer model are several, but once I can check for the enabled, I think I will be able to check for any other field. I could bind the habtm model to Category, but in this case I can't check the Offer.enabled condition. Maybe somehow using containable? I have the normal sql query, which I could use but I want to learn how to do this in the cakephp way Thank you -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Creating dinamic content
Hi all! I have been working with this framework for 2 months, and now I have an important question about it. I need to create dinamic sections for a site. For example: school.com /info /about-us There are not fixed sections, admin can add new sections. My question is: if the admin add a new section, the url would be "school.com/ contact", and the controller wouldn't exists. How can I implement this?? Thank you very much! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Accessing request parameters
Why doesn't Cake merge query-string parameters (/my-page?foo=bar) with named ones (/my-page/foo:bar) ? I need to access them differently in the controller: $this->params->query['foo']; or $this->params->named['foo']; (or just $this->params['foo']) It is true, a browser form submission with method=GET will only generate ? style requests. But what if I'd like to generate a good looking request to the action using named params? It's sad we can't just say params['foo] and get the variable no matter how it was passed. Even in most pathological cases like /my-page/foo:bar?foo=xyzzy foo would be intuitively set to xyzzy -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Displaying Images from Database
On 21/05/12 14:58, Miah Gregory wrote: To render the images directly from the database, you need to output an appropriate mime type header then send the image data to the caller. It's doable in cake, but you need to jump through a few hoops. You certainly don't need to write the image to disk to serve it up to the caller, that would be highly inefficient, and you'd be better off writing the image to disk in the first place rather than storing in the database if you were going that route. As to whether serving up images directly from the database vs from the file system via a php wrapper for access control is a sensible way to go - that's a whole different discussion. The bottleneck for database or disk images IMHO would be sending the actual data in the response as is the case for all images. Reading the image data from the database, I would argue, is less efficient than reading it from disk since the server may well have clients competing for database connections causing a bottleneck in itself. I would suggest that a one-off database extraction then caching the extracted image for a period of time and serving it from disk would be more efficient (especially for high traffic images) than extracting it from the database for each request. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Comparing user's existing password
Maybe - PHP has its pros and cons, however people whose understanding of a language (or will to learn a language or use other peoples codebases written in that language) amount to picking out a function name and wanting to throw whatever parameters at it until there are no errors spat out, or just happen to work by chance, lead to extremely incompetent coders who usually, in one way or another, still make it into the "profession" and give others a bad name. On May 21, 12:43 am, rahajiyev wrote: > PHP sucks... a good language would have told me that I'm sending it > array while it's expecting a string. I spent a couple of hours late > Friday to find where I got it wrong, to no avail. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to omit controller name in pagination links?
This line does it, put in template: $this->Paginator->options(array('url' => array('controller' => null))) Now all page links are generated without the controller name. Not sure if it's clean to be put it there and not in the controller, but I couldn't find out how to do that. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How to omit controller name in pagination links?
I have URL /operations configured to 'controller' => 'milli' But Cake builds pagination links such as /milli/operations/page:2 How can I tell it not to include the controller name milli so it's / operations/page:2 ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: jQuery append, how to get file content
In the controller, just add the line to the page function. function page() { if($this->params['isAjax']==1) { $this->layout = ''; } } what this does is, it will check if the call is an ajax one or not,if its an ajax call, we override the layout by stating it as empty. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: jQuery append, how to get file content
Hi, Thank you for replied but can you explain a bit more? I don't know how to implement your suggestion. On Tuesday, May 22, 2012 1:44:26 PM UTC+8, marco metal wrote: > > Hi, > > In your controllers function you need to add this line > > if($this->params['isAjax']==1) > { > $this->layout = ''; > } > > this checks if the current request call is an ajax one or not. > > > > Enjoy, > > Marcus > On Tuesday, May 22, 2012 1:44:26 PM UTC+8, marco metal wrote: > > Hi, > > In your controllers function you need to add this line > > if($this->params['isAjax']==1) > { > $this->layout = ''; > } > > this checks if the current request call is an ajax one or not. > > > > Enjoy, > > Marcus > On Tuesday, May 22, 2012 1:44:26 PM UTC+8, marco metal wrote: > > Hi, > > In your controllers function you need to add this line > > if($this->params['isAjax']==1) > { > $this->layout = ''; > } > > this checks if the current request call is an ajax one or not. > > > > Enjoy, > > Marcus > On Tuesday, May 22, 2012 1:44:26 PM UTC+8, marco metal wrote: > > Hi, > > In your controllers function you need to add this line > > if($this->params['isAjax']==1) > { > $this->layout = ''; > } > > this checks if the current request call is an ajax one or not. > > > > Enjoy, > > Marcus > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php