http://groups.google.com/group/cake-php/search?group=cake-phpq=generateList+multiple+field
THis one in particular
http://groups.google.com/group/cake-php/browse_thread/thread/c5709f46064b4106/853e167148d67f7d?lnk=gstq=generateList+multiple+field#853e167148d67f7d
Basically nate suggests using
Try
?php echo $html-link('Home', array('controller'='docs',
'action'='index', admin=false)); ?
Note tested though.
Geoff
--
http://lemoncake.wordpress.com
On Oct 10, 3:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I use $form-create and $html-link all through my site, but sometimes
I
You can use ?= instead of ?php echo or ?php e(); ? - I am pretty
sure this is standard behaviour, at least I have not run into any
troubles with it.
My designer generally does the mock ups and then I place the actual
php code in the mocks. I find that this works best for the way I
work, and
Yep thats the way I do it. Default to deny all, except a couple of reads
like Pages etc.
Geoff
On 9/29/07, cakeFreak [EMAIL PROTECTED] wrote:
Cheers Geoff!
With all answers you gave me I own you a couple of beers ;0)
By the way you therefore do
-ROOT
---Admins
-Editors
My personal preference is jQuery as well, which means I don't ever use
the AjaxHelper but I still feel that jQuery is faster for myself.
I'll have to lookup the jQuery helper though...
Geoff
--
http://lemoncake.wordpress.com
On Sep 30, 12:02 pm, candesprojects [EMAIL PROTECTED] wrote:
I
I usually have the Guest or Public group at the root of the tree
as they usually have the bare minimum access rights. All subsequent
groups just extend the base permission set.
And how you describe identifying a guest user is pretty much what I do
- if they are not logged in I set them as a
', $this-Yahoo-getResultsby($yahoosearch));
}
}
?
Any Help on this would be greatly appreciated again thanks for your
time.
On Sep 24, 10:24 pm, Geoff Ford [EMAIL PROTECTED] wrote:
Instead of function showresult($yahoosearch = null)
use
function showresult(){
if(!empty
No the default rewrite rule will not get in the way.
The only issue is how the host implements the ssl. Most hosts just
link the ssl to the main site directory but some use a seperate folder
(Plesk comes to mind) that requires duplicate files. This may also
cause session cookie path issues,
To validate more than one model in a controller you do something like
the following:
// add the two models as member varables
var $uses = array('ModelOne', 'ModelTwo');
// in your action that requires the validation
$this-ModelOne-set($this-data);
$this-ModelTwo-set($this-data);
if
Instead of function showresult($yahoosearch = null)
use
function showresult(){
if(!empty($this-data) isset($this-data['Yahoo']['yahoosearch]))
{
$yahoosearch = $this-data['Yahoo']['yahoosearch];
// do rest of searching code
} else {
// show input form
}
}
Basically anything
This all depends on the other application. The basic premise is the
same - just include the file you need and if the other app has a whole
hierachy of includes etc you need to include those as well. THen
instantiate your foreign app class and start using it as a normal
class (not cake style),
http://lemoncake.wordpress.com/2007/08/06/multi-record-forms/
There is also another (cleaner) method in the comments that uses
ClassRegistry which I would recommend - I haven't got round to
writting a new post on this method yet.
Geoff
--
http://lemoncake.wordpress.com
On Sep 23, 9:28 am,
Also - $html-hidden('Client/id') wont work with a findall because the
findall results array is slightly different to that of find.
Geoff
--
http://lemoncake.wordpress.com
On Sep 23, 9:28 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
I have a page with a list of forms, one form for
As long as the form elements are named using the cake conventions i.e.
name=data[ModelName][fieldName] (best acheived by using the
FormHelper functions) there should be no difference between single and
multi-model forms.
The only difference is when you need to validate both models before
saving
Multiple Rules is only available in Cake 1.2. There is a Bakery
article on this :
http://bakery.cakephp.org/articles/view/multiple-rules-of-validation-per-field-in-cakephp-1-2
I also wrote two posts on the new Validation in 1.2 on my blog
This line trtdpre?php $knownusers ?/pre does nothing. Apart
from the fact that there is no echo - $knownusers will be an array.
Try ?php debug($knownusers) ? to see the format that is being used.
Geoff
--
http://lemoncake.wordpress.com
On Sep 17, 4:16 am, CakeONaut [EMAIL PROTECTED] wrote:
There are a heap of tutorials on this - see
http://groups.google.com/group/cake-php/web/frequent-discussions on
where to start
Geoff
--
http://lemoncake.wordpress.com
On Sep 17, 12:17 am, Pisinho [EMAIL PROTECTED] wrote:
Hi,
I find a tutorial o HowTo with good example, a manual don't is
You can also use the isAuthorized (controller or model) option in
AuthComponent. It is a great way of doing basic authorization like
this. See
http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful-tutorial-for-using-cakephps-auth-component/
Geoff
--
Its not Model that you should be implementing. You shoudl be looking
at a database driver to access the flat files.
Start here http://api.cakephp.org/1.2/class_dbo_source.html and use
one of the existing drivers as an example.
Geoff
--
http://lemoncake.wordpress.com
On Sep 7, 7:36 am,
.htacess is the quickest
http://www.google.com.au/search?q=.htaccess+password+protectie=utf-8oe=utf-8aq=trls=org.mozilla:en-GB:officialclient=firefox-a
Geoff
--
http://lemoncake.wordpress.com
On Sep 4, 8:08 am, GunitMail [EMAIL PROTECTED] wrote:
So I generated my admin section with bake, but
I would use a factory object to load a seperate model based on the
user type.
See this thread for a simliar problem.
http://groups.google.com/group/cake-php/browse_thread/thread/a2a140878b3094f1/05142a4f5055947c?lnk=gstq=sonic+i+love+a+goodrnum=2#05142a4f5055947c
Geoff
--
The Acl (db_acl.php) in 1.2 has used the with parameter for quite some
time, before the alpha release even.
Geoff
--
http://lemoncake.wordpress.com
On Aug 30, 5:36 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On 8/29/07, Mech7 [EMAIL PROTECTED] wrote:
Does the with only works on the
You can override the foreign key by defining it in the association
array. This is from the manuals Model Chapter about half way down in
the section titled Defining and Querying with hasMany
var $hasMany = array('Comment' =
array('className' = 'Comment',
Grzegorz - carSign is using backticks which is equivelent to using
shell_exec();
carSign - is your php in safe mode as this will restrict what
directories you can execute from, the cli and mod_php often have
different settings. Also make sure that the user that apache runs as
has access to
As AclNode actsAs Tree you can try using
$this-Group-Aro-setParent()
I'd like to know how you go with this.
Geoff
--
http://lemoncake.wordpress.com
On Aug 28, 11:19 pm, Flan [EMAIL PROTECTED] wrote:
Hello,
I have been trying out Acl and adding Aros with Users and Groups along
the same
Adrian,
This behavior appears to be by design. If you look at
http://api.cakephp.org/1.2/libs_2model_2behaviors_2acl_8php-source.html#l00092
you can see that it specifically tests for if $created before adding
it to the database.
I'm not certain why this is but I'm sure there is a good reason.
I believe that this is a variation of https://trac.cakephp.org/ticket/2976
Geoff
--
http://lemoncake.wordpress.com
On Aug 27, 1:34 am, Aurelijus ValeiĀa [EMAIL PROTECTED] wrote:
Hello again,
i fixed this editing cake\libs\controller\components\acl.php
Changed this line:
for ($i =
I thought the beforeFilter was occuring in AppController - because you have
it in UsersController it wont ever get executed when you call admin because
admin actually uses the PagesController.
Move the beforeFilter to AppController and it should be good.
Geoff
On 8/25/07, rtanz [EMAIL
Really well done - i lol'ed too.
Geoff
--
http://lemoncake.wordpress.com
On Aug 27, 9:36 am, housebolt [EMAIL PROTECTED] wrote:
LOL
On Aug 25, 8:45 am, RichardAtHome [EMAIL PROTECTED] wrote:
http://www.youtube.com/watch?v=GQXqWkWqnSw
I lol'ed :-D
If you don't set 'dependent' nothing happens to the profile - when you
delete the progile entries will remain.
Also when you create a User - it wont automatically create the
UserProfile record until you explicitly save the Profile, regardless
of whether dependent is true or false.
Geoff
--
Thanks Andy, that's much cleaner than testing for it explicitly like I
suggested.
Geoff
On 8/24/07, AD7six [EMAIL PROTECTED] wrote:
On Aug 24, 1:50 am, rtanz [EMAIL PROTECTED] wrote:
any more help on this? thanks
add CAKE_ADMIN = CAKE_ADMIN to your route
Cake is looking for the
$Route-connect('/admin', array('controller' = 'Pages', 'action' =
'display', 'admin', CAKE_ADMIN = CAKE_ADMIN));
Geoff
On 8/24/07, AD7six [EMAIL PROTECTED] wrote:
On Aug 24, 10:01 am, rtanz [EMAIL PROTECTED] wrote:
im afraid i didnt really understand what i should change. these are my
Yeah that error makes sense and there is no way around it unless you modify
the PagesController which is probably not a good idea.
Try removing that CAKE_ADMIN from your route and doing the following in
AppController
if ($this-params[url] == admin) {
$this-params[CAKE_ADMIN] = true;
}
if
I used a very similar approach but my redirect urls were just '/users/
login' and '/users/account' and it worked perfectly fine on
1.2alpha.
Geoff
On Aug 25, 10:22 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I used a users plugin (cake\app\plugins\users) to manager users in my
application.
What you are talking about is essentially a Form Builder. For the
rendering of arbitrary fields have a look at the way scaffolding
manages it.
As for sorting out which fields to render - it sounds like you have
the right approach for storing it in the database, and then it is just
a matter of
Because you are manually routing the page, it is bypassing the
CAKE_ADMIN functionalilty. How are you doing the check in the
AppController? If you are using the $this-params['admin'] it wont be
set for this route.
Geoff
--
http://lemoncake.wordpress.com
On Aug 23, 9:46 am, rtanz [EMAIL
if (!empty($this-params[CAKE_ADMIN]) || $this-params['url'] == admin)
That should do it, the admin route that you created bypasses the CAKE_ADMIN
feature so you have to explicitly test for it.
Geoff
On 8/23/07, rtanz [EMAIL PROTECTED] wrote:
this is how im doing my check
if
anybody help me with this? Thanks in advance.
-Igor
Geoff Ford wrote:
This page works -
http://www.escaparatetactil.es/demoav/index.php/regions/
So it seems that it is still trying to use mod_rewrite - make sure
you did not upload the .htaccess files.
Then double check your path
One of the best places for mentoring is the IRC channel. A lot of
cake gurus spend some time in there on a regular basis.
Geoff
--
http://lemoncake.wordpress.com
On Aug 22, 8:21 am, Bravo_Kernel [EMAIL PROTECTED] wrote:
Hook me up too. I could use a kickstart as well ;)
On 21 aug, 22:33,
This page works - http://www.escaparatetactil.es/demoav/index.php/regions/
So it seems that it is still trying to use mod_rewrite - make sure
you did not upload the .htaccess files.
Then double check your path settings in index.php - the css files etc.
are not making it through the routing
Nope and it probably never will have it in the core. It may end up in
the AjaxHelper one day if proto/scriptactulous supports it. I suggest
using jQuery. There is the tablesorter plugin and also one for
filtering that I can't remember the name of.
Geoff
--
http://lemoncake.wordpress.com
On Aug
] to
close the
$listdata[$data['Team']['team'] = $data['Sport']['sport'] . '-' .
$data['Team']['team'];
now: $listdata[$data['Team']['team'] = $data['Sport']['sport'] . '-' .
$data['Team']['team']];
Still no smiles from heaven for this one
Beertigger
On Aug 13, 7:30 pm, Geoff Ford [EMAIL
You've got a error in the getListData function - remove the curly barce
between the end of the query and $listdata = array();
Geoff
On 8/14/07, Beertigger [EMAIL PROTECTED] wrote:
Found this one earlier. What myGenerateList does, it does very well,
much easier than using an afterFind to
Looking at the screenshot - it appears that you are using a Model
called File. There is a core class called File so try changing the
name of your model.
Geoff
--
http://lemoncake.wordpress.com
On Aug 13, 3:51 am, Muhammad Ishaq [EMAIL PROTECTED] wrote:
Sorry, the lines that had displayed
Does the cache folder have write permissions?
Geoff
--
http://lemoncake.wordpress.com
On Aug 13, 9:28 am, Kimble [EMAIL PROTECTED] wrote:
On 10 Aug, 17:56, Feris Thia [EMAIL PROTECTED] wrote:
Have you added :
var $cacheAction = array(
'Your action/view URL' = secondsofcache
phpjoy,
Thanks for the praise :)
Geoff
On 8/11/07, phpjoy [EMAIL PROTECTED] wrote:
Just making sure.. :-)
Thank you.
By the way, I really enjoy your blog. It's a great piece of work.
On Aug 10, 2:05 pm, Geoff Ford [EMAIL PROTECTED] wrote:
Nope size is not an issue here :)
Geoff
, $teamsportlist, $selectedItems);
None of this seems to be working, no matter how I jigger things about.
Aargh!
--Beertigger
On Aug 8, 6:59 pm, Geoff Ford [EMAIL PROTECTED] wrote:
All the code I outlined would be in the controller. You could put the
loop
in the getListData() function in the model
Suppress the error message generated by input() with
$form-input('Project.proj_start',
array('div'=false,'id'='ProjectProjStart','label'=false,'size'=15,'type'='text',
'error' = false));
Then add the error after the image with $form-
error(Project.proj_start);
Geoff
--
It is a random string that should be (near enough to) unique for your
application. It is used to salt hashes, seed rnd() and the like to
improve security.
Geoff
--
http://lemoncake.wordpress.com
On Aug 10, 2:39 pm, phpjoy [EMAIL PROTECTED] wrote:
After messing around a bit with the Auth
Nope size is not an issue here :)
Geoff
On 8/10/07, phpjoy [EMAIL PROTECTED] wrote:
so it's size doesn't matter.. means each install i can put a random 10
letters number, sha256 it and wrap it up?
On Aug 10, 8:23 am, Geoff Ford [EMAIL PROTECTED] wrote:
It is a random string that should
Have you tried : $this-Category-find(array('Product.project_id'=
$this-Session-read('project_id')));
Geoff
--
http://lemoncake.wordpress.com
On Aug 10, 8:48 am, sarimarton [EMAIL PROTECTED] wrote:
But you do have association between projects and products. You have
the proper associations.
For your particlular example you could try count(Post.title) as
`Post`.`count`
In general this sort of thing is done in afterFind(). Just loop over
the results and add the extra keys that you need.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 7:08 pm, mithesh [EMAIL PROTECTED] wrote:
hi
If you have renamed the app folder you need to tell Cake where it is.
Look in webroot/index.php.
Same goes for the cake folder, if it is not in the standard location
you need to change the define() in index.php.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 4:28 pm, Raul [EMAIL PROTECTED]
if I can make any
progress.
- Sohum.
On Aug 7, 2:52 pm, Geoff Ford [EMAIL PROTECTED] wrote:
The cookies need to be the same name. They are looking for
different
cookies that tell what the session id is.
Geoff
--http://lemoncake.wordpress.com
On Aug 7
and SMF's are stored away in some
place I couldn't find, I went ahead and modified Cake's.
- Sohum.
On Aug 8, 2:55 pm, Geoff Ford [EMAIL PROTECTED] wrote:
You don't need to modify cake. All you have to do is modify
config/core.php:
define('CAKE_SESSION_SAVE
http://api.cakephp.org/1.2
this and
submit it as an enhancement to the trac.
Geoff
On 8/9/07, Travis Cline [EMAIL PROTECTED] wrote:
On Jul 25, 6:27 pm, Geoff Ford [EMAIL PROTECTED] wrote:
Hmm.. Very interesting. I had not seen that before. I might have a
play later on and see if I can get it to work. I'll let you
to the URL: /top_tiers/index#Verbs. This page displays exactly like /
top_tiers/index would.
I don't know how I'd implement $html-link() because it asks for a URL
and an array but I want the same array.
Has anyone got any ideas or an example for the problem?
Dave
On Aug 7, 11:55 pm, Geoff
like (again double check the format)
$html-select(SelectName, $mylist, $selectedItems);
I hope this helps :)
Geoff
On 8/9/07, Beertigger [EMAIL PROTECTED] wrote:
Isn't form::select for 1.2? I'm using 1.1 on this project...
On Aug 8, 3:05 am, Geoff Ford [EMAIL PROTECTED] wrote:
Forget
Models to use an abstract factory on asap. The only
thing I'm having trouble with now is how to know which account a user
belongs to when they log in. (please see below)
On 8/8/07, Geoff Ford [EMAIL PROTECTED] wrote:
Customer hasMany Accounts - a customer is a User with a
CustomerProfile
stupidity. Wrapping what I know of php up with
Cake is proving to be troublesome, at best. The masterbake script
provides such a sweet basic framework that a bit of pain getting
things 'just right' is worth it, but this one thing is really killing
me... ; )
On Aug 8, 3:48 pm, Geoff Ford
Put an id in - cake needs it to write the update statement. It
doesn't have to be 'id', just use var $primaryKey = 'some field';
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 12:21 am, phpjoy [EMAIL PROTECTED] wrote:
i also wonder, where does this redirect happen in cake?
dispatcher?
If the tables do not require a separate model for any other actions
like CRUD i.e. they are only used by the MSDS model you can write a
custom query in the MSDS model using $this-query('SELECT...');
Geoff
--
http://lemoncake.wordpress.com
On Aug 7, 1:36 am, modfather [EMAIL PROTECTED] wrote:
is created and another cookie is created
(SMFCookie655). Is this because they have different cookie names? The
SMF path is / whereas the Cake cookie path is the cake application
directory. They will both be the same on the production server,
though.
- Sohum.
On Aug 7, 3:59 am, Geoff Ford [EMAIL
[EMAIL PROTECTED] wrote:
Hi Geoff,
Thanks very much for your response. Just got to view it now. I'll have a
look into your suggestions but they sound good.
On 8/2/07, Geoff Ford [EMAIL PROTECTED] wrote:
I hope this seems clear enough.
On the permissions and profiles, I think so. Just
If you add $uses = array(User); to the appcontroller it will be
available to all controllers including the pages controller.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 11:04 am, Tang Jianyu(??) [EMAIL PROTECTED] wrote:
Hi,
Maybe this is a silly question, but I didn't find answer
Bookmarks use #bookmarkName last time I checked.
Geoff
--
http://lemoncake.wordpress.com
On Aug 8, 11:50 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On 8/7/07, mussond [EMAIL PROTECTED] wrote:
Hey all, I trying to create a bookmark link on my page. I couldn't
find anything in api that
I don't know the details of the cake session component, or sessions in
general, but I believe that the sessions work by creating a cookie with a
unique code. This code points to the session file (or db record) where the
session data is stored.
So from my understanding, as long as both smf and
The bakery is not a shopping cart application. Have a look at
BakeSale http://bakesalehq.com/
Geoff
--
http://lemoncake.wordpress.com
On Aug 6, 11:31 am, ChOsEn [EMAIL PROTECTED] wrote:
I'm new to Cake Php. And i was wonder how to use the bakery to
implement a shopping cart. Any suggestions
include this somewhere else? Although that doesn't seem like the
solution.
- Sohum.
On Aug 3, 10:38 am, Geoff Ford [EMAIL PROTECTED] wrote:
What are the ssi calls - From my understanding Cake shouldn't need to
use these. Cake will just add its own keys to the existing session (I
The exact line to add to your post model is:
var $hasMany = array('Comments');
And yep it is that easy :)
As for the error - when you turned debug on up to 2 do you get a Controller
missing action or something like that?
Geoff
On 8/3/07, Dan Soendergaard [EMAIL PROTECTED] wrote:
This
@francky I know what he is trying to achieve - rtanz is trying to get
us poor helpful bakers to write his entire application for him. :-P
Geoff Ford
--
http://lemoncake.wordpress.com
On Aug 2, 7:58 pm, rtanz [EMAIL PROTECTED] wrote:
hi franck tnx what i am trying to achieve is that when a new
);
This will pull all your tasks and the corresponding tasks templates.
You may have to increase the $recursive for task list to 2 to get the
templates.
I hope this makes sense.
And I do like to help despite my half jesting last email.
Geoff Ford
--
http://lemoncake.wordpress.com
On Aug 2, 10:59 pm, Fran
);
This will pull all your tasks and the corresponding tasks templates.
You may have to increase the $recursive for task list to 2 to get the
templates.
I hope this makes sense.
And I do like to help despite my half jesting last email.
Geoff Ford
--
http://lemoncake.wordpress.com
On Aug 2, 10:59 pm, Fran
Not found
The requested address was not found on this server.
This usually indicates that either mod_rewrite is not working or you
have fiddled with your paths in config/core.php
As for getting all the comments that belong to a post
Post hasMany Comments
$data = $this-Post-read($postId);
I'm assuming the user database table has a group_id therefore you can
just use the User belongsTo Group association and it will be automagic
$data = $this-User-findById($this-Session-read('User.id');
$groupName = $data['Group']['name'];
Geoff
--
http://lemoncake.wordpress.com
On Aug 3, 1:27
It shows alot of the common questions and problems that people face
when using cake.
Geoff Ford
--
http://lemoncake.wordpress.com
On Aug 3, 11:18 am, walterbyrd [EMAIL PROTECTED] wrote:
On Aug 2, 2:46 pm, webmosher [EMAIL PROTECTED] wrote:
CodeIgnitor is very similar to Cake in many aspects
What are the ssi calls - From my understanding Cake shouldn't need to
use these. Cake will just add its own keys to the existing session (I
think).
The only trouble you might have is if cake and smf use the same key
and one overwrites the other all the time (not sure that this will
happen, just
Make menus and submenus the same model (no associations, just use
parent_id) and then always use findAllThreaded() I have found that to
be the best solution in similar situations as then there is only one
data structure (in the same format each time) to traverse. I usually
build the menu with
You shouldn't need to do anything just navigate to http://domain.com/sub_folder
and it should be ready to go. Cake is happy to run in a subfolder.
Unless I am missing something that you are trying to do?
Geoff
--
http://lemoncake.wordpress.com
On Aug 3, 12:32 am, Vince [EMAIL PROTECTED] wrote:
A Membership belongsTo User hasOne TaskList from what I can see. Once
you have your associations set up properly try $this-User-TaskList
Make sure the associations are set up correctly. You cannot call
arbitrary members and just pray that CakePHP will figure out what you
mean. It's good but
The session errors are probably because of whitespace after the
closing ? in images.php
The reason you can't save with $this-data may have to do with the
fact that there is no 'id' field in your comments table. In your
comment model try adding a var $primaryKey = 'id_comment' Take a look
at
Models should not really access other models but there are situations
where it is needed/useful. The more correct method would be that the
controller saves the User and then creates a TaskList for the newly
created User.
Geoff
--
http://lemoncake.wordpress.com
On Aug 1, 9:11 am, rtanz [EMAIL
I'm with grant - use one action with a differnt view as needed
function action1($layout = 'list'){
// set data and other stuff
switch ($layout){
case 'table':
$this-render('action1_table');
break;
default:
$this-render('action1_list');
break;
}
}
You could
I have added section on Frequent Discussions for Multi-record forms.
THe basics is you have to create the inputs yourseld rather than use
the form helper. Use a structure like data[Modelname][count]
[fieldname] as the name of the input then loop over data[Modelname]
in the controller action.
The vendors folder is used for anything that is outside the cake
framework. e.g MyClass is in a file called myClass.php in the vendors
folder, then you use it with
venders('myclass');
$myclass = new MyClass();
Geoff
--
http://lemoncake.wordpress.com
On Aug 1, 11:25 am, Aaron Thies [EMAIL
] wrote:
Or you can try create a component, and load it with loadComponent or
anything else. I think it's better...
On 29 jul, 21:54, Geoff Ford [EMAIL PROTECTED] wrote:
I believe $uses is overwritten by the actual controller that is
invoked. I suggest you use loadModel() and creat
?
Also instead of creating component what u think of creating an
helper ? I think it can be used as component ?
Please let me know.
Thanks
On Jul 30, 4:58 pm, Geoff Ford [EMAIL PROTECTED] wrote:
Components are loaded with var $components = array(MyComponent); and
used
similar to models i.e
YOu need to set a default Route in app/config/routes.php
Geoff
--
http://lemoncake.wordpress.com
On Jul 31, 8:13 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Quick question that I can't seem to find an answer for. The home page
of my site needs to have a lot of dynamic content generated on
I think in 1.2 all input fields are to go through $form-input() so a
check box would be $form-input(array('type' = 'checkbox'));
Geoff
--
http://lemoncake.wordpress.com
On Jul 30, 9:27 am, citrus [EMAIL PROTECTED] wrote:
Have you enabled the Form Helper?
$helpers = array('Html', 'Form',
As long as the login page redirects back to the requested url after
successful login in I don't see the difference, and it is probably
easier and cleaner in my opinion to redirect.
Geoff
--
http://lemoncake.wordpress.com
On Jul 30, 5:30 am, Gonzalo Servat [EMAIL PROTECTED] wrote:
On 7/29/07,
Using Housebolts method the action would look like:
for ($i=0; $i5; $i++){
$this-User-create();
// assign all the fields with correct names
$user['email'] = $this-data['User']['email' + $i];
$this-User-set($user);
if (!$this-User-validates()) {
// You will need to do the following
I believe $uses is overwritten by the actual controller that is
invoked. I suggest you use loadModel() and creat your own instances
of the models you need.
Geoff
--
http://lemoncake.wordpress.com
On Jul 29, 8:27 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hello Friends,
I am new to
Also I would look at Elements. Here is a very good article on the
sort of thing you are trying to do
http://bakery.cakephp.org/articles/view/creating-reusable-elements-with-requestaction
Geoff
--
http://lemoncake.wordpress.com
On Jul 29, 8:05 am, rtconner [EMAIL PROTECTED] wrote:
I think this
You will have to create the inputs the old fashioned way, and create
the empyer records as an array that you can loop over when posted
back.
In the controller function use $this-set('formerEmployers', $this-
FormerEmployer-findAllByApplicantId($applicant_id));
Then in the view, make sure you
Hmm.. Very interesting. I had not seen that before. I might have a
play later on and see if I can get it to work. I'll let you know how
I go.
Geoff
--
http://lemoncake.wordpress.com
On Jul 26, 8:49 am, chewie124 [EMAIL PROTECTED] wrote:
Ahhh... ok. Thanks for the input. I was grepping
Try using $ajax-submit() instead of $form-submit();
Geoff
--
http://lemoncake.wordpress.com
On Jul 26, 2:05 pm, Michael Augustyniak [EMAIL PROTECTED]
wrote:
Grant Cox wrote:
Be more clear with your question - what is the problem, and what do
you want to achieve?
The only think I could
From what I see, you want to connect users to roles and then roles to
modules and it appears to be access control.
Have a look into access control in the manual. Read, understand, run
some examples and tests. Then apply it to your project.
Geoff
--
http://lemoncake.wordpress.com
On Jul 24,
http://groups.google.com/group/cake-php/browse_thread/thread/596b519308b466f0/fa87b2dd9d6d264c?lnk=gstq=1.1++1.2rnum=24#fa87b2dd9d6d264c
http://bakery.cakephp.org/articles/view/a-gift-for-all-to-enjoy
http://bakery.cakephp.org/articles/view/the-last-alpha-cake
Use 1.2, it has test suite built
. I have filed a
href=https://trac.cakephp.org/ticket/2976;Trac Ticket #2976/a
which includes a patch to fix the error.
Geoff
--
http://lemoncake.wordpress.com
On Jul 20, 9:10 pm, Geoff Ford [EMAIL PROTECTED] wrote:
Hey cakeFreak,
I have a slightly different approach for development bypassing
Some resources on internationalisation are listed on this page
http://groups.google.com/group/cake-php/web/frequent-discussions
Have a look at the section on How to add i18n support? and Translate
behaviour.
Geoff
--
http://lemoncake.wordpress.com
On Jul 23, 8:22 am, michaelmcandrew [EMAIL
1 - 100 of 233 matches
Mail list logo