This is my View page shows in controller code :::::::
class AdminController extends AppController {
var $name = 'Admin';
var $uses = array('Frmcontent'); // we can use multiple models by defining
the $uses variable.
var $components = array ('Crypter');
var $paginate = array('limit' => 1, 'page' => 1);
var $helpers = array('Html', 'Form', 'Javascript','FCKeditor1');
--
my function edit....................
function contentedit($id=null)
{
$this->sidebar ='CONTENT_MANAGEMENT';
$this->evnt = 'contentedit';
$this->layout = 'admin/admin';
$this->page='edit';
$this->set('page',$this->page);
$this->set('sidebar',$this->sidebar);
$this->set('evnt',$this->evnt);
$this->Frmcontent->id = $id;
if(!empty($this->data))
{
if($this->Frmcontent->save($this->data))
{
$this->Session->setFlash('Your post has been updated.');
$this->redirect(array('controller'=>'admin',
'action'=>"contentview"));
}
}
else
{
$this->data=$this->Frmcontent->read();
}
}
------------------------------------------------------------------------
This is my View page shows in view page error shows :::::::
http://localhost/bestgymdeal_parth/admin/contentedit/23
As i click on edit link myurl show above link contenetedit is action in
controller and 23 is id of particular row.
The page displays error like.
/**********************************************/
Missing Method in AdminController
Error: The action FCKeditor is not defined in controller AdminController
Error: Create AdminController::FCKeditor() in file:
app\controllers\admin_controller.php.
<?php
class AdminController extends AppController {
var $name = 'Admin';
function FCKeditor() {
}
/********************************************************/
This is my View page shows in view page code :::::::
http://old.nabble.com/file/p27071557/contentedit.ctp contentedit.ctp
/*******************************************************/
--
View this message in context:
http://old.nabble.com/FCKEditor-Edit-Page-Isssue-tp27071557p27071557.html
Sent from the CakePHP mailing list archive at Nabble.com.
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