Hi all.
i'm having some troubles with Helper aliasing in Cake 2.1 Beta
i have 3 helpers:
PdfHelper.php
PdftableHelper.php
TableHelper.php
this is my PdfHelper code
class PdfHelper extends AppHelper {
public $helpers = array(
"Table" => array(
"className" => "Pdftable"
)
);
}
and this is my view code
echo $this->Pdf->Table->myfunc();
i'm getting a
call to undefined function myfunc() in TableHelper.
why is cake still using "Table" and ignoring my alias?
if i modify the code this way
class PdfHelper extends AppHelper {
public $helpers = array(
"Whatever" => array(
"className" => "Pdftable"
)
);
}
View:
echo $this->Pdf->Whatever->myfunc();
everything works.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php