Great! Thanks a lot!
On 9 Jan., 03:18, brian wrote:
> The paginate method calls find() internally. So, what you've done here
> is run the find() yourself, altered the data, then set the data to the
> results of another (paginated) result. It's, more or less, as if you
> called find() again.
>
>
Hello and thx for the fast response.
i forgot to paste the var $primaryKey in my model's code. sorry.
everything is working fine in my app. i just can't fetch Location
Types starting from persons. i'll take a look @ containable behaviour.
thx again
On 8 Gen, 21:43, Webweave wrote:
> Since you
Rock! Thanks for the help.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Dardo Sordi Bogado
Sent: Thursday, January 08, 2009 9:17 PM
To: cake-php@googlegroups.com
Subject: Re: Sanitization
> Question about Sanitization. Am I right i
Thanks I will try that.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Penfold
Sent: Thursday, January 08, 2009 7:27 PM
To: CakePHP
Subject: Re: Sanitization
Try
$this->data = Sanitize::escape($this->data);
On 8 Jan, 23:23, "rhythm
I think you can use regex in routes, so probably you could do this.
But then I think you would have to restrict user names to not have 's'
as a last character. So it might be better for users if you copy/
paste/modify a bunch of routes so they don't gripe when they can't get
an 's' on their user
The simplest method would be .htaccess password.
On Jan 9, 5:19 am, fain182 wrote:
> hello,
> I need to protect a whole cakephp site under one password, i don't
> need user, groups, registration etc.. so i don't want use ACL for a
> simple thing like this.. how can I do? there is a simpler
> aut
I have a Blog Model & I have a Tag Model. The Tag model is a HABTM
relationship to the Blog model. If I add some tags to a particular
blog post and save it using saveAll and then I go back and then try to
remove all the tags, cakePHP will not remove them all. However if I
only attempt to remove a
Criminy, it just started to work with var $cacheAction = array('index' =>
3400); I kind of want to say duh but its not totally obvious that it should
have. Or maybe it is. Anyway! On to the next problem.
Andre
On Thu, Jan 8, 2009 at 9:45 PM, DRE wrote:
> if I have this :
> Router::connect(
>
if I have this :
Router::connect(
'/search/:crit',
array('controller' => 'search', 'action' => 'index'),
array('crit'=>'(.+)')
);
How do I view cache the output?
Along with var $helpers = array( 'Cache');
I've tried
var $cacheAction = array('index/*' => 3400);
var $cach
Thank You for your answer.I think this is what I want to get.
but I have too many controllers,
this is a big task to add so many routers,
and I will add more many controllers.
so, is the routes.php support the Regular expression?
because all of my controllers are end by 's'.
for example ,
can I
I tried this still not working..If I use scaffolding to test
everything works fine validation errors shows up.
When I use my view then the problem arises.
On Jan 8, 2:29 pm, Nature Lover wrote:
> Hi!
>
> try by mentioning also the model name while outputting errors, so the
> view code will becom
If you wanted to do this, you would have to setup a route for '/*' and
point it to whichever controller/action is going to accept your
param. So:
Router::connect('/*', array('controller' => 'users', 'action' =>
'view'));
would allow you to get the address 'www.mysite.com/users/view/joe' by
ente
You might as well leave the hashed password in bootstrap.php then, and
have your controller check against that.
Either that, or use ht[digest|passwd] (though you'd be stuck with the
browser's ugly login box).
On Thu, Jan 8, 2009 at 4:19 PM, fain182 wrote:
>
> hello,
> I need to protect a whole
On Thu, Jan 8, 2009 at 6:17 PM, bunwich wrote:
>
> Hi,
> I've been playing with 1.2 final and was having problems calling ->find
> ('all') on a HABTM join table. By convention you don't create a
> AppModel .php file for a Join table in a HABTM relationship, but since
> i had specific queries i ne
My tables: entries, topics, entries_topics
Now all works fine when grabbing data from Entry or Topic. But when I
try to grab data from EntriesTopic, my belongs to are not even
working. Ive tried so many variations and nothing is working.
And my find query:
debug($this->EntriesTopic->find('all
Thanks, I got that to work by doing the App:import and then creating
instances of the file object for each file I needed to delete.
I wonder why file isn't included in the cookbook?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
need to define a with key and include the name of the Join model. It
was a bug that auto loaded the model in the past for you.
-Mark
On Jan 8, 6:17 pm, bunwich wrote:
> Hi,
> I've been playing with 1.2 final and was having problems calling ->find
> ('all') on a HABTM join table. By convention
rhythmicdevil,
Cake will use Names instead of ID's on immediate "children" of Models
provided that you are using the fieldname 'Name'. For example, if
you're relating Posts to Users and you have the 'user_id' field in
your Posts table and you also have the 'name' field in your Users
table, CakeP
Is it intended that the SessionComponent isn't listed in the API docs
under the classes section? I was looking for it today for the first
time but didn't see it, so I thought I would bring it up.
'session.php' is in the files section, and of course I can review the
source file no problem, but the
You want a self join. Try something along these lines:
class FriendOfFriend extends AppModel {
public $name = 'FriendOfFriend';
public $belongsTo = array(
'User' => array(
'className' => 'User',
'foreignKey'
I'm copying the following tutorial:
http://bakery.cakephp.org/articles/view/simply-storing-config-values-in-the-db
I noticed my value, which was 'Test', was being put into the DB as
'N;'. The key remained correct.
I found that on an empty table, writing a key the wrong value would be
inserted
The paginate method calls find() internally. So, what you've done here
is run the find() yourself, altered the data, then set the data to the
results of another (paginated) result. It's, more or less, as if you
called find() again.
What you should do is create an afterFind() method in the *model*
> Question about Sanitization. Am I right in thinking that I need to
> process each field in my submitted data and then rebuild the array to
> send to my model for saving? That doesnt seem right to me from the
> point of view of the framework. I would have thought that I could
> simply pass it my
Try
$this->data = Sanitize::escape($this->data);
On 8 Jan, 23:23, "rhythmicde...@gmail.com"
wrote:
> Question about Sanitization. Am I right in thinking that I need to
> process each field in my submitted data and then rebuild the array to
> send to my model for saving? That doesnt seem right t
hi grigri,
I've made a small addition to your helper, to enable me to pass a
class to the UL.
helper: http://pastie.org/356229
html: http://pastie.org/356227
css: http://pastie.org/356228
Cheers,
Jon
--
jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~--
Thank you for clarifying this. The app is now working.
--
Louie Miranda (lmira...@gmail.com)
http://www.louiemiranda.net
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
On Thu, Jan 8, 2009 at 11:42 AM, Adam Royle wrote:
>
> No, accessing models by default is always sing
Hi Paul,
It sounds a really good idea, I have a couple of comments that couple
be a help or not.
Have a RSS parser you can then pull content from there current site
(if they have one and if they have RSS feeds) this reduces the burden
on them having to update two websites and open up pulling con
Leave your login() action empty and remove allow('*'). Do not allow
the login action.
http://www.milesj.me/blog/read/5/using-cakephps-auth-component/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
T
Ok, I think I finally resolved #2 now as well. It looks as if I will
have to convert my entire app to v1.2 of Cake, but in the end the time
spent will be beneficial. 1.2 has more mature routing capabilities
(along with more mature everything else).
Moving on...
In order to keep some of my app's
> If you need a singe password for basic Auth,
> the Security component allows you to handle that very easily:
>
> http://book.cakephp.org/view/473/Basic-HTTP-Authentication
excellent,
thank you!
--~--~-~--~~~---~--~~
You received this message because you are subsc
here is my task manager users_controller and user model. whenever i go
to login page and click on login i m unable to go to redirected page.
please help.
my code is
user model
array('rule'=> array('minlength',1),
'message'=> 'firstname required'),
'username'=> array('rule'=> ar
Hi grigri,
> Cool, I like Bath - it's a nice place. Any good pubs? [Real Ale
> drinker here]
plenty, here's a few
The Bell http://www.walcotstreet.com/ - great pub, has 7 ales on tap
at any one time
The Raven http://www.theravenofbath.co.uk/ - often used for ad hoc
meet ups of web dev/new medi
Question about Sanitization. Am I right in thinking that I need to
process each field in my submitted data and then rebuild the array to
send to my model for saving? That doesnt seem right to me from the
point of view of the framework. I would have thought that I could
simply pass it my data array
Anyone have an idea on this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsu
Hmmm, this finally runs an update:
function block($id) {
$this->id = $id;
$data = array();
$data['Friend']['status'] = 'blocked';
$data['Friend']['blockedTime'] = time();
return $this->save($data, false);
Bedfordshire here - so fairly central (for England!)...
UK CakeMeet could be good...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To
So first, this Bake is pretty impressive in all that it auto builds. I
must say the team did a ton of work to make this happen.
Ok so I just did my first run and I have a bunch of views, models and
controllers. They all seem to work. The question I have is this:
I have several inter-related mode
Hi grigri,
> My next challenge is to extend your helper so there's no radios, just
> nested lists, then include the associated documents from each
> category, with a thumbnail + link and 2 radios - wish me luck!
To expand on what I need. I have a CMS, running a few sites. The
add/edit page fo
You are setting the paginate data. Not your restructured data. Btw,
you should do this kind of thing in the model.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to
Can you pinpoint where the change happened? I am not aware of any
changes to form between RC3 and Final that would affect the usage.
Perhaps you were using form->hidden() before?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
If you need a singe password for basic Auth,
the Security component allows you to handle that very easily:
http://book.cakephp.org/view/473/Basic-HTTP-Authentication
On Jan 8, 4:19 pm, fain182 wrote:
> hello,
> I need to protect a whole cakephp site under one password, i don't
> need user, gro
Use aliases.
var $hasMany = array(
'HomeGame' => array(
'className' => 'Game',
'foreignKey' => 'games_home_teams_id'
),
'AwayGame' => array(
'className' => 'Game',
'foreignKey' => 'games_away_teams_id'
)
);
--~--~-~--~~~---~--~---
Ok cool. Thanks.
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-...@googlegroups.com] On Behalf
Of Gwoo
Sent: Thursday, January 08, 2009 5:40 PM
To: CakePHP
Subject: Re: Baking
Because there is no way to tell if a relationship is 1-1 or 1-many in this
context since
Authorization (ACL) is not the same as Authentication (Auth). So, yes
you can use the Auth component without using ACL. In fact, for Auth,
the default setting is to base access completely off of authentication
without regards to authorization.
http://book.cakephp.org/view/172/Authentication
--~--
Because there is no way to tell if a relationship is 1-1 or 1-many in
this context since in both cases the ingredient_lists table would have
a measurement_type_id. Choose the one that fits your application.
--~--~-~--~~~---~--~~
You received this message because you
I have the following line of code in my view:
input('Preview.id'); ?>
In 1.2 RC3 this used to generate the following html:
But in 1.2 final it generates the following HTML:
Id
Why? I have this in many places.
I now have to change my code to
input('Preview.id', array('type'=>'hidden')); ?
I'm currently using Cake to add additional functionality to an old PHP
app dealing with sports. I can't seem to get the 'games' table
associated with 'teams'.
'Games' has two foreign keys, 'games_home_teams_id' and
'games_away_teams_id', both of which refer to 'teams_id', a primary
field. I tri
I've made a small change to the lua script 'cause I was having some
trouble parsing URL's where I had some query strings like "controller/
action/?something=somethingelse". I know it's not the common usage,
but sometimes, when delivering other URL's on your query string for
instance, you can't go
hello,
I need to protect a whole cakephp site under one password, i don't
need user, groups, registration etc.. so i don't want use ACL for a
simple thing like this.. how can I do? there is a simpler
authentucation component? other ways?
thank you,
pietro
--~--~-~--~~~---
Hello,
I am having the same issue as his. I tried importing the controller
and do
//$this->Users = new UsersController();
//$this->Users->Auth->allow('*');
but I get an error: Call to a member function allow() on a non object
The difference with mine is that I d
i m trying to make a taskmanager and whenever i login i reach to the
login page instead of redirecting to task page
here is my user model
array('rule'=> array('minlength',1),
'message'=> 'firstname required'),
'username'=> array('rule'=> array('minlength',1),
'message'=>
seems like you are only changing one field, probably saveField() is a
better approach in this case
On Jan 8, 5:12 pm, Miles J wrote:
> This is usually called in a loop. And the docs said to use create() in
> loops, so I guess you don't need create() for updating rows then?
>
> Ill test what you
I am playing around with Bake and I have a question about the
relationships it suggests.
When adding the relationships for the tables below it asks me to
confirm the following:
One moment while the associations are detected.
---
Please
$this->Auth->user();
or pr($this->Session->read()); to see what you have available.
... it's all in the manual by the way.
On Jan 8, 5:21 pm, "Chad Casselman" wrote:
> I have the basic Auth working, but there isn't any information in the Session.
>
> I was trying to use the code I found to acc
Hi Jared,
thank you, but it did not worked, although I have php5 installed.
Is there an other way?
Kind regards,
volka
On 8 Jan., 22:43, Jared wrote:
> The foreach loop is working on a copy of $travelogue. So you either
> need to pass it in by reference by doing:
> foreach ( $travelogues as
I have the basic Auth working, but there isn't any information in the Session.
I was trying to use the code I found to access the logged in user's info by:
$this->Session->read('User.id')
My login function is just
function login() {}
// using automagic
What do I need to do to keep the login wor
This is usually called in a loop. And the docs said to use create() in
loops, so I guess you don't need create() for updating rows then?
Ill test what you did.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
If the debug is set to 0, you'll always get a 404 page regardless of
what the actual problem is.
So it sounds like some issue in your code.
On Jan 8, 4:24 pm, "mohammad al-ani" wrote:
> ok I was on the high level security but I tried it with the medium and low
> level and the problem still appea
Hi grigri,
> Oh, forgot one little thing. This code:
>
> `if (isset($document_categories) && count($document_categories) > 0)`
>
> can be replaced with this code:
>
> `if (!empty($document_categories))`
I find if I just check on if (empty( I get undefined errors if the
array doesn't exist, d
hi grigri,
On 1/8/09, grigri wrote:
>
> Ok, here's a few things to help you:
>
> First, that view function of yours belongs in a helper. You should
> never define functions inside a view template.
I know! was just testing out the theory, am new to recursive functions.
> From an HTML point
The foreach loop is working on a copy of $travelogue. So you either
need to pass it in by reference by doing:
foreach ( $travelogues as $travelogue){
...}
unset($travelogue).
This will only work in php5.
volka wrote:
> Hi there,
>
> I have the following index() method in my controller:
>
> func
I seemed to resolve issue #1 in my last post (thanks again to ADmad
for prompting me to look through the nightly build's test cases for
this).
v1.2: Router::connect('/:subdirectory/:controller/:action/*', array(),
array('subdirectory' => '[a-zA-Z0-9\-]+'));
Now my URL's can be prefixed with anyt
ok I was on the high level security but I tried it with the medium and low
level and the problem still appear
but i found when i set the debug level to 1 the problem disappear and there
was no errors. i think it is some issue with session
On Thu, Jan 8, 2009 at 12:42 PM, Webweave wrote:
>
> Yo
If you want to pull the value from the session, I would do that in the
controller, and set the value there.
You don't need any code to read the session in the view.
In your controller, just set the field 'user_id' to the value you got
from the session (if I'm understanding the point of the code
There was a post a while back about setting the Security level to
medium to fix a problem with IE7 and Auth that you might want to try.
On Jan 7, 11:32 pm, "mohammad al-ani"
wrote:
> OK today I find that the problem is just with the ie
>
> in the firefox the page load fine and never redirected s
Hi there,
I have the following index() method in my controller:
function index() {
$travelogues = $this->Travelogue->find('all');
$i = 0;
foreach ( $travelogues as $travelogue):
if (!empty($travelogue['Travelogue']['gallery
$count = $this->Entry->find('all', array('fields' => array('(max
(Entries.counter)) as max_counter'));
Will return an array with the max_counter value in it.
On Jan 8, 8:29 am, mona wrote:
> I know how to handle queries but i don't know how to fetch values of
> variables for example
> i wan't t
Header already sent means that there is something that is spitting out
data to the stream before your page starts to render.
Could be some left over debug code, or an actual problem with the
page.
Set debug to 2 and you should be able to see the problem (either in
the page, or in the logs)
On J
Since you are using "non-standard" names for your ID columns, you need
to specify $primaryKey in your models, so your Person model, you would
need:
$primaryKey = 'location_id';
If you set debug to 2 or 3, you'll see the queries being executed. You
may need to set recursive to get the non-related
You didn't mention the browser bit before, so this only happens with
IE?
What level is your Security set to in app/config/core.php ?
There was a thread a while back about problems with IE7 and Auth where
reducing the security level to medium fixed things.
On Jan 8, 11:21 am, "mohammad al-ani"
always make sure that you check on or cast to whatever you need,
especially reading from session!
especially as type safety (as in java) is not one of PHP's strong
points
if it is an integer id you need to have, use (int) casting:
$user_id = (int)$session->read('User.id')
this way your input won
yes believe me every thing is fine and all stuff in its place and when I
use the firefox the problem is disappear
On Thu, Jan 8, 2009 at 11:11 AM, Webweave wrote:
>
> Is you layout in the right location ?
>
> As long as you have a page.ctp in yourapp/views, setting layout to
> 'page' should wor
Is you layout in the right location ?
As long as you have a page.ctp in yourapp/views, setting layout to
'page' should work.
On Jan 8, 10:15 am, medo wrote:
> hi all
>
> yesterday I asked you about the error I faced when try to log in to my
> site with /users/login and the error was the auto re
Hi,
I could use some clarification about how the core tests are run. I
have always seen a bunch of random errors when running them on my
system but did not think too much about it. I tried running them on
the new stable 1.2 and expected none or a few errors. Not so.
I noticed that at least in som
Thank you! Makes administering to my Index easier!
Thank you again!
On Jan 8, 12:55 pm, "Femi Taiwo" wrote:
> Yes you can set the default controller and action right there in routes.php.
> Look for an area that looks like this
>
> Router::connect('/', array('controller' => 'pages', 'action'
hi all
yesterday I asked you about the error I faced when try to log in to my
site with /users/login and the error was the auto redirect to 404
error page with the ie after a while when the page displayed .And
after my tries to found a solution I find that the problem come when I
use $this->layou
can you please give me som more details on where i use that exactly?
i tried the following in my comments_controller
<
2009/1/8 padmanabha vn
>
>
> use
>
> $this->set('comments','required data');
>
>
>
>
>
> On Thu, Jan 8, 2009 at 4:30 PM, dimitri wrote:
>
>>
>> As a newbie to cakePHP I enco
Thank you!
If somebody knows about that project. please let me know
2009/1/7 Bernardo Vieira
>
> I've seen something similar before... just can't remember where. If I'm
> not mistaken it's a project from one of the authors of a cake related
> blog, but I reallycan't remember right now.
>
> Henr
Hi, updated my project CakePHP 1.1 for the CakePHP 1.2 and it
submitted the following error:
Warning: Cache not configured properly. Please check Cache::config();
in APP/config/core.php in C:\wamp\www\cake2\cake\libs\configure.php on
line 660
Fatal error: Call to a member function connect() on a
H... I don't have any $controller to change to $this->controller.
I tried adding the code for startup, and that didn't seem to make a
difference. I'm not really clear on what that would do?
I've tracked this down a little bit more, and it seems the problem is
with the email elements. I set th
Table names are lower_case_undescored_plural while model names are
FirstCapsSingular, so:
your tables should be:
- persons
--- id <--- using id as primary key makes your life a lot easier
--- name
--- surname
- locations
--- id
--- person_id
--- location_type_id
--- address
--- country
- locatio
Your component needs to get a handle on the controller. Add this:
function startup(&$controller) {
$this->controller = $controller;
}
.. and change any $controller to $this->controller
Another couple of things worth mentioning: I'm not sure when this
change happened, but I recently ran
what settings i have to do to upload my cakephp project on to server
because it is showing some warning like
header already sent
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
I know how to handle queries but i don't know how to fetch values of
variables for example
i wan't to fetch max(counter) so i know how to write query but how to
store value of this in some variable and print them in my index view
for eg
$query=mysql_query("select max(counter) from entries");
I'm not sure I understand your question, but if you have a field you
want to save a counter in, you can do this in the model using
countCache: http://book.cakephp.org/view/445/cacheQueries
If on the other hand you need to find the count from some set of
values, you can simply use find('count'):
Hi everybody. I've been getting gip from this cheeky little number for
a while now, was just wondering if anybody has any insights into how i
could solve this problem.
The problem is that i'm passing the lastInsertId into the session and
trying to pull it out in different views, and it works alot
Hello.
i have 3 models
- Person
- Location
- Location_Type
pointing respectively @ 3 tables:
Persons:
person_id
name
surname
Locations:
location_id
person_id
location_type_id
address
country
Location_Types:
location_type_id
description
the 3 models are linked as follow:
Person hasMany Locati
can you please give me som more details on where or how I should use that
exactly?
i've tried the following in my comments_controller
Session->setFlash('Invalid Post');
$this->redirect(array('action'=>'index'));
}
$post = $this->Post->read(null,$id);
$this->set('comme
I just upgraded from RC3 to 1.2 final, and I'm getting errors when
sending email.
I have my own component:
class MyEmailComponent extends Object {
var $components = array ('Email');
function sendEmail($to,$subject=null) {
// The calling controller must first set
You can if you install your application at the root of the domain.
All links start with blog presumably since you have put your cake
application in a folder called blog?
How you do it depends on your own preference and how much control you
have over the hosting setup. Generally speaking it will b
Hey eXcalibur,
If you end up going with option 2, feel free to ping me off-list if
you get stuck. Aside from a few gotchas, the existing driver should
be fairly straightforward to adapt, and it'd be great to get one done
for the new SQL Server.
On Jan 8, 7:25 am, Martin Westin wrote:
> Hi eXca
I'm South West too (Poole, Dorset) and would definitely consider a UK
Cake meet a good thing.
Ian Hill
http://www.eventhq.co.uk
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
Oh, forgot one little thing. This code:
`if (isset($document_categories) && count($document_categories) > 0)`
can be replaced with this code:
`if (!empty($document_categories))`
It does exactly the same thing [for an array, anyway] and is shorter
and neater [just personal preference].
hth
gri
Ok, here's a few things to help you:
First, that view function of yours belongs in a helper. You should
never define functions inside a view template.
>From an HTML point of view, there are 2 ways of defining label/input
relationships. You can either embed the input inside the label, which
makes
RichardAtHome wrote:
> I've never needed a build path for PHP :-)
>
> Here's how I do CakePHP dev with PDT:
>
> 1) Unzip cake to c:\htdocs\projects\my_project
>
> 2) Open up eclipse
>
> 3) Select workspace: c:\htdocs\projects\
>
> 4) Create a new project called "my_project"
>
> 5) Get coding.
>
>
You can use Model->query('any sql statement') to execute arbitrary sql
code. Bear in mind, however, that what you're trying to do can be done
with cake's built in methods in a much cleaner way. Model->query()
should really be used as a last resort when cake can't handle what
you're trying to
How to do what in CakePHP?
Thomas
On Jan 8, 7:46 am, mona wrote:
> I have code of my controller in which i use normal php codes to fetch
> data from a database and update counter how to do this in cakephp
>
> class EntriesController extends AppController
> {
> var $name = 'Entries';
>
I've never needed a build path for PHP :-)
Here's how I do CakePHP dev with PDT:
1) Unzip cake to c:\htdocs\projects\my_project
2) Open up eclipse
3) Select workspace: c:\htdocs\projects\
4) Create a new project called "my_project"
5) Get coding.
On Jan 8, 12:32 pm, NirC wrote:
> Hi All,
>
Yes you can set the default controller and action right there in routes.php.
Look for an area that looks like this
Router::connect('/', array('controller' => 'pages', 'action' =>
'display'));
Femi T
On Thu, Jan 8, 2009 at 1:48 PM, Steppio wrote:
>
> Yeah that helps a lit
Yeah that helps a little, the question mark was a typo ;P. So I could,
in theory, set my index to anything in routes.php?
On Jan 8, 12:34 pm, Bernardo Vieira wrote:
> To none really.
>
> Steppio wrote:
> > Silly question by a silly question but to which controller does
> > index.php belong to? A
1 - 100 of 119 matches
Mail list logo