If i add $compontens to the controller i get an error like this Warning (2): fopen(C:\xampp\htdocs\MyWishList\app\tmp\cache\models \cake_model_default_mahaloo_list) [function.fopen]: failed to open stream: Invalid argument [CORE\cake\libs\file.php, line 154] Code | Context
$mode = "w" $force = false fopen - [internal], line ?? File::open() - CORE\cake\libs\file.php, line 154 File::write() - CORE\cake\libs\file.php, line 245 FileEngine::write() - CORE\cake\libs\cache\file.php, line 144 Cache::write() - CORE\cake\libs\cache.php, line 303 DataSource::listSources() - CORE\cake\libs\model\datasources \datasource.php, line 241 DboMysql::listSources() - CORE\cake\libs\model\datasources\dbo \dbo_mysql.php, line 611 Model::setSource() - CORE\cake\libs\model\model.php, line 768 Model::__construct() - CORE\cake\libs\model\model.php, line 474 ClassRegistry::init() - CORE\cake\libs\class_registry.php, line 141 Controller::loadModel() - CORE\cake\libs\controller\controller.php, line 641 Controller::constructClasses() - CORE\cake\libs\controller \controller.php, line 506 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 186 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 171 [main] - APP\webroot\index.php, line 83 The helper is set in the controller On 23 Aug., 19:14, Jeremy Burns | Class Outfit <[email protected]> wrote: > Are you including both the Session helper and component? > > Jeremy Burns > Class Outfit > > [email protected]http://www.classoutfit.com > > On 23 Aug 2010, at 18:11, amarradi wrote: > > > Hello together, > > > i tried to update my app from 1.2.5 to 1.3.3. All things seems to be > > run normally. Only the Session->setFlash() dont't work fine > > > function add($listId = null) { > > > if(!$listId) { // expecting wishlist_entries/add/${listId} or > > wishlist_id as hidden field in form > > if(!empty($this->data['WishlistEntry']['wishlist_id'])) { > > $listId = $this->data['WishlistEntry']['wishlist_id']; > > } > > else { > > $this->Session->setFlash('No Id found'); > > $this->redirect(array('controller' => 'wishlists' , > > 'action' => 'select')); > > } > > } > > > Where is the fault? > > > I also moved my flash.ctp from layout to element > > > Here is the content of it > > --------------------------------- > > <?php > > /* SVN FILE: $Id$ */ > > /** > > * > > * PHP versions 4 and 5 > > * > > * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org) > > * Copyright 2005-2008, Cake Software Foundation, Inc. (http:// > >www.cakefoundation.org) > > * > > * Licensed under The MIT License > > * Redistributions of files must retain the above copyright notice. > > * > > * @filesource > > * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. > > (http://www.cakefoundation.org) > > * @link http://www.cakefoundation.org/projects/info/cakephp > > CakePHP(tm) Project > > * @package cake > > * @subpackage cake.cake.libs.view.templates.layouts > > * @since CakePHP(tm) v 0.10.0.1076 > > * @version $Revision$ > > * @modifiedby $LastChangedBy$ > > * @lastmodified $Date$ > > * @license http://www.opensource.org/licenses/mit-license.php > > The MIT License > > */ > > ?> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <?php echo $html->charset(); ?> > > <title><?php echo $page_title; ?></title> > > > <?php if (Configure::read() == 0) { ?> > > <meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php > > echo $url; ?>"/> > > <?php } ?> > > <style><!-- > > P { text-align:center; font:bold 1.1em sans-serif } > > A { color:#444; text-decoration:none } > > A:HOVER { text-decoration: underline; color:#44E } > > --></style> > > </head> > > <body> > > <p><a href="<?php echo $url; ?>"><?php echo $message; ?></a></p> > > </body> > > </html> > > ------------------------------- > > Can everyone help me please? > > > Many greetings Marcus > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
