There are several files in which you could put variables to be accessed in other files:app_model.php - in your model variable is accessibleapp_controller.php - in your controllers variable is accessible
core.php - anywhere accessibleJoseOn 4/8/06, wassimk [EMAIL PROTECTED] wrote:
Hello
I'am pretty new to CakePHP, and I'm thinking about the posibility to
rewrite an already running web portal y admin entirely with Cake. I'm a
bit stuck with routes, maybe someone can help.
I'd like url's to be en the format (example):
[1] www.example.com/james-joyce - info and bibliography about
Hi everybody, anybody can tell me how can I make links like:
http://localhost/cake/controller:sublink1
http://localhost/cake/controller:sublink2
http://localhost/cake/controller:sublink3
I saw them at the Wiki Tutorials:
http://wiki.cakephp.org/tutorials:migration
Langdon, I know you weren't fishing, it's just that, by the time I
finished explaining the work that needed to be done, I realized I could
have already been about half done actually doing it.
I happen to have a PC with a recent SQL Server install handy, and
thanks to Cake's well-designed
You can use app/config/bootstrap.php to intercept the variable
$_GET['url'] before it goes to Cake's dispatcher.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I'm also using CakePHP v0.10.5.1701_beta. Is that not the most recent
stable version?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to cake-php@googlegroups.com
ok, I think I solved my problem.
Following the link, I was using the tag 'a href='/posts/view/?php
echo $post['Post']['id'] ?''.
Once I changed it to 'a href='/cake_blog/posts/view/?php echo
$post['Post']['id'] ?'', everything worked out fine. I just had to
add the '/' in front of my
$this-requestAction() might help here
look in manual
Sam D
On 4/9/06, Alexey Baranovskiy [EMAIL PROTECTED] wrote:
I need to change requested action.
For example: User requested this url - www.domain.com/articles/edit/1,
but he isn't authorised. I need to change action edit to action
...
function beforeFilter() {
if (!$this-Permission-checkPermission($this-name, $this-action))
{
return $this-denied();
}
...
function denied()
{
}
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 09-Apr-2006, at 13.48, jburns131 wrote:
ok, I think I solved my problem.
Following the link, I was using the tag 'a href='/posts/view/?php
echo $post['Post']['id'] ?''.
Once I changed it to 'a href='/cake_blog/posts/view/?php echo
$post['Post']['id'] ?'', everything worked out fine.
On 09-Apr-2006, at 17.48, Larry E. Masters aka PhpNut wrote:
function beforeFilter() {
if (!$this-Permission-checkPermission($this-name, $this-action))
{
return $this-denied();
}
Perhaps
function beforeFilter()
{
if (!$this-Permission-checkPermission($this-name, $this-
action)) {
I did it like this ?phpclass Contact extends AppModel{ var $name = 'Contact'; var $validate = array('email'=VALID_EMAIL, 'name'=VALID_NOT_EMPTY,'text'=VALID_NOT_EMPTY,'regards'=VALID_NOT_EMPTY);
var $useTable = false;}?the $useTable means that it doesn't connect to the db and I can use the
12 matches
Mail list logo