Hi all,
Just some quick questions and hoping to get pointed in the right
direction. I have an events table which has many event_details and
pictures.
events --hasMany--> event_details
events --hasMany--> pictures
A couple of questions firstly with the event_details. Is there a way
to create the
Ah. Now you see, that makes sense when its laid out on paper.
I was considering having to go with a separate Model that would be the
link between them.
The relationships I had sorted out in my mind went something like
this:
Employee hasMany RatingsMade,
Employer hasMany RatingsMade and
Ratings h
hello
i m new in cakephp
i m developing shopping cart
how do i perform add to cart process, each steps for it.
what i have to perform.
do i have to create a new ctp for cart process.
or frm any other way i complete it.
or how do i do it using bake.
plz let me know each steps for add to cart & upda
http://bakery.cakephp.org/articles/view/ldap-models-in-cakephp
was the place I got LdapUser model guide. Certainly, my app could not apply
this (because my database scripts is different). I make inheritance from it
only.
I'm new in cakePHP Framework, but I think it's great. How about you ? How
lon
use the bake,you can finish it
2009/2/5 Maulik
>
> hello guys
> i m new in cakephp
> i m going to develop shopping cart
> how do i perform add to cart process using a qty text box & submit
> button
> >
>
--~--~-~--~~~---~--~~
You received this message because yo
On Fri, Feb 6, 2009 at 1:18 AM, Son Dat Giang wrote:
> Many thanks to Servat and Weldon for giving me easier ways to solve my
> problem.
>
You're welcome.
Have you got any experience about LdapUser & SSO ?
>
SSO very little ... and some LdapUser experience. Err, where did you get
LdapUser from
Many thanks to Servat and Weldon for giving me easier ways to solve my
problem.
Yeah, login have username and password always. But my project uses SSO
(using Active Directory and LdapUser). Right now, I have no Active Directory
to connect to, so my password field is disabled and that is the reason
That error is usually seen when your .htaccess files are not in the
right places.
Look at http://book.cakephp.org/view/37/Apache-and-mod_rewrite
On Feb 4, 8:43 am, Celso wrote:
> I thanks! I did! However, I have this error:
>
> Error: NotesController Create the class below in file: app \
>
On Thu, Feb 5, 2009 at 11:49 PM, datgs wrote:
>
> Hi everybody,
>
> I've had to rewrite code in AuthComponent class to login with username
> only.
>
> Was it the best way for my purpose. Is there any way without changing
> the code in AuthComponent.
>
I had to do this as I wanted a site that was
Hey,
I am really not sure why you would want this.. but not knowing your
project, I am sure you have your reasons.
One method that comes to mind is forcing the password.
Essentially, assign a common password to all users on creation, and use the
callbacks to force the password to something on
There is no requirement to have a one-to-one relationship between
models and controllers. Chris Hartjes talks about this in his blog:
http://www.littlehart.net/atthekeyboard/2009/01/04/cakephp-mythbusters/
You can run your entire application with a single controller if that
makes sense for you.
Hi everybody,
I've had to rewrite code in AuthComponent class to login with username
only.
Was it the best way for my purpose. Is there any way without changing
the code in AuthComponent.
Thanks,
--~--~-~--~~~---~--~~
You received this message because you are su
They are .po files. Can I see an example of your file?
Should look like:
msgid "signup"
msgstr "Sign Up"
msgid "signout"
msgstr "Sign Out"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to
I think 3 columns should be sufficient, although having a PK wouldn't
hurt (and may help in some circumstances).
employers_ratings (
employer_id,
employee_id,
rating_id,
UNIQUE (employer_id, employee_id)
)
Assuming that you'll be getting the employee_id from the
Why dont you just truncate after the result?
--~--~-~--~~~---~--~~
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 t
On Thu, Feb 5, 2009 at 4:43 PM, Dwayne wrote:
>
> This idea seemed to work out. Basically what I needed to happen was to
> allow access to multiple controllers for data objects associated with
> a given page in the CMS. The data objects themselves are included in
> the page through a modified req
I think it's RequestHandler that's responsible for that, not
Router::parseExtensions().
Anyhoo, does your layout path happen to be "app/views/layouts/RSS/default.ctp"?
On Thu, Feb 5, 2009 at 5:46 PM, Damon wrote:
>
> Why does parseExtensions all the sudden care about case?
> Router::parseExtens
Why does parseExtensions all the sudden care about case?
Router::parseExtensions('rss') won't load the proper layout file (app/
views/layouts/rss/default.ctp), but Router::parseExtensions('RSS')
does. I don't remember it doing so in earlier versions (I'm on
1.2.1.8004).
--~--~-~--~~--
Oh that is wonderful, thank you both!
--~--~-~--~~~---~--~~
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
Hi all (again).
I have a different question this time. Allow me to elaborate on the
situation...
Let's say I have three tables: employees, employers and ratings.
Employees: Contains employee information
Employers: Contains employer information
Ratings: Contains various ratings with weightings av
This idea seemed to work out. Basically what I needed to happen was to
allow access to multiple controllers for data objects associated with
a given page in the CMS. The data objects themselves are included in
the page through a modified request action (the version by biesbjerg).
So all I needed w
try Configure::write('Acl.classname', 'INI_ACL');
--~--~-~--~~~---~--~~
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 em
Could you please provide a little more detail on how to do this?
Specifically, what do you mean by "just pass $this->data to be
checked"
Sorry for the newbie question.
On Jan 25, 1:28 pm, brian wrote:
> You'll need to validate the user's input before you call find(). If
> you want, you can cre
On Feb 5, 9:03 pm, gkc wrote:
> AD7six:
>
> Thanks for pointing out the debug.
>
> Here is what is coming up:
>
> Array
> (
> [0] => Array
> (
> [Post] => Array
> (
> [title] => This is the first Post
> [tag] => arch
AD7six:
Thanks for pointing out the debug.
Here is what is coming up:
Array
(
[0] => Array
(
[Post] => Array
(
[title] => This is the first Post
[tag] => architect, costs
[created] => 2009-02-05
On Feb 4, 10:28 pm, amarradi wrote:
> Hello together,
>
> i tried it since my start with cakePHP. How get i my forms in an
> "normal" view. Textfield and the button, all what can in this time is
> to build an form where the textfield is over the button..
>
> many greetings
>
> Marcus Radisch
Hi
I've actually managed to sort it out.
One of the other devs in the office showed me the way (here's looking
at you, Deon, if you're reading this ;)
Basically, I edit the webroot/index.php. I call ob_start(); just
before $Dispatcher->dispatch(). Then, I retrieve the contents of the
buffer and cle
BTW the implementation looks clean.
Cake has a Model.cacheSource directive. May be your code can read
that directive and based on that both enable or disable DB side
cache.
I ran into an issue trying to disable cache as data was updating in
real-time in the background.
On Feb 4, 1:26 pm, Bren
Is there a reason CakePHP does not use the MySQL query cache? I
honestly can not think of any reason why the query cache would be
disabled. And on that topic, how does CakePHP disable the query cache?
I'm not seeing anything in my logs saying not to use the cache, but it
is not being used despite
On Feb 5, 7:24 pm, gkc wrote:
> Siegfried:
>
> I was using 1.2.0.7962 but I just downloaded the latest version.
>
> I dont think its a problem with the query itself because I dont get
> any SQL error messages. I think it is how its being reference in the
> view. How would you reference the re
doing it in beforeRender() will be fruitless, there is no View output
generated until render() which beforeRender() happens before ;) you
might have better luck using afterFilter(); Or even better making a
custom view class for your wireless output format, and switching to
the custom view class b
Siegfried:
I was using 1.2.0.7962 but I just downloaded the latest version.
I dont think its a problem with the query itself because I dont get
any SQL error messages. I think it is how its being reference in the
view. How would you reference the return p10 in your view? I keep
getting Undefi
Thank you thank you very very much appreciated
brian-9 wrote:
>
>
> My bad. Try this:
>
> $this->Recipe->find('all', array('conditions' => array(
> 'OR' => array(
> 'Recipe.name LIKE' => '%' . $item . '%',
> 'Recipe.caption LIKE' => '%' . $item . '%'
> )
> ),
> 'or
Hello gkc,
I have just tried the following in my app:
$vendors = $this->find('all',
array('conditions'=>array('vendor_id >' => 0),
'contain'=>array('Vendor.shortname'),
'fields'=>array('left(Item.product,10) as p10, COUNT(*) as
My bad. Try this:
$this->Recipe->find('all', array('conditions' => array(
'OR' => array(
'Recipe.name LIKE' => '%' . $item . '%',
'Recipe.caption LIKE' => '%' . $item . '%'
)
),
'order' => 'Recipe.name',
'recursive' => 1
)
);
Aso, set debug to 2 and look at the SELECT Cake is generat
function search($item = null) {
$item = $this->params['url']['q'];
$recipes = $this->Recipe->find('all', array('conditions' => array(
'OR' =>array(
array('Recipe.name LIKE' => '%' . $item . '%',
array('Recipe.caption LIKE' => '%' . $item . '%',
Alfredo,
Thank you for finally responding. I REALLY NEED HELP WITH THIS
I am not trying specify the return limit, I am trying to limit the
amount of characters returned from a field. Say a field contains 500
characters, I only want the first 10.
I am having this problem with any SQL opera
I've posted a little how-to on implementing your custom data source
driver here:
http://otaqui.com/blog/402/custom-model-and-field-result-set-in-cakephp/
Thanks for the code!
On Feb 5, 12:17 pm, grigri wrote:
> Sure thing.
>
> This is a copy of my overridden datasource for a project I did last
There's other simpler way if you have limited access to the server.
You must do the query by hand, get the datasource for your model,
execute the query with the query() method, and iterate throught the
Result resource identifier you receive from the query. In order to
dump this to a file, if the d
Thanks for the response, Alfredo - I would really have no idea as to
how to solve that as I didn't experience it myself. Good luck,
yasa83jsm.
On Feb 5, 9:59 am, Alfredo Quiroga-Villamil wrote:
> I've ran into similar issues with IE in the past, check your json and
> make sure there are no trai
Including the helper in the AppController works with the missed
indexes, but navigating through the pages causes new problems with the
sessions and/or renders the element twice. By the moment I'll left
apart the AJAX pagination, other things need my atention now.
Thanks for the help, doc.
On Feb
Hi all, I am considering using Cake for the next version of an app I
have but need to know how i might do something. something i might
call sub-applications?
ok. I have a php application "suite" that consists of a "desktop"
that loads in other "applications". Many of these applications are
qui
On Feb 5, 5:27 pm, Dan wrote:
> Thanks for the replies and suggestions everyone. When I have a chance
> I will dig deeper into this. I've implemented a workaround that is
> fine for now. I was mainly curious if this was a known issue or just
> poor implementation on my part. Pete's suggestion m
On Feb 4, 10:50 am, the_undefined wrote:
> @pcdinh: The source repository of CakePHP is primarily a tool meant to
> assist the *developers* of CakePHP, not the users. Those who wish to
> contribute to the development of CakePHP will find Git to be a more
> powerful and social tool than SVN.
>
> W
How could it print anything without a echo before the gettext alias ?
if I use this, it print nothing, and if I add echo before, it print
the msgid instead of msgstr
does cake generate .mo files ? should I do it myself ? if yes, how
must I name those files ?
--~--~-~--~~---
i set AclIni in my config/core.php
Configure::write('Acl.classname', 'IniAcl');
I set the acl.ini.php
;-
;Users
;-
[diana]
groups = admin
deny =
allow =
;-
;Groups
;-
If necessary, i can post my code.
--~--~-~--~~~---~--~~
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
hello,
my controllers have interfaces for all CRUD's action. When i wanna
change the behavior of my actions, i change the implementations of
interface. So, inside one controller, i have to create a instance of
one class that implements the interface, and call the one method. But,
i cant associate
On Thu, Feb 5, 2009 at 9:50 AM, Dwayne wrote:
>
> Yeah, I'm a bit iffy on taking specific actions on the pages as well,
> but they aren't static content. I need some way of interacting with
> the controllers that modify the content that won't leave the end user
> confused as to which page their c
Thanks for the replies and suggestions everyone. When I have a chance
I will dig deeper into this. I've implemented a workaround that is
fine for now. I was mainly curious if this was a known issue or just
poor implementation on my part. Pete's suggestion may be the solution,
I'll know after I try
try
'conditions' => array(
'OR' => array(
array('Recipe.name LIKE' => '%' . $item . '%'),
array('Recipe.ingredients LIKE' => '%' . $item . '%')
)
)
On Thu, Feb 5, 2009 at 10:34 AM, monirr444 wrote:
>
>
> function search($item = null) {
>$item = $this->par
On Thu, Feb 5, 2009 at 1:31 AM, Malcolm Krugger
wrote:
>
> Thanks
>
> I have many view files that may use the same variables again and
> again
>
> SO I do not want to define these variables so many times ?
>
> Is there a shortcut ?
>
> These variables are pure html e.g
>
> $veryimp = "";
>
> etc
On Thu, Feb 5, 2009 at 5:47 AM, garbetjie wrote:
>
> Hey all.
>
> I've been struggling with what I would imagine should be a relatively
> simple exercise.
>
> I'm attempting to integrate the Wireless Abstraction Library (WALL)
> into my Cake app, but it really isn't playing nice.
>
> I need to be
On Thu, Feb 5, 2009 at 7:17 AM, grigri wrote:
>
> Sure thing.
>
> This is a copy of my overridden datasource for a project I did last
> month: http://bin.cakephp.org/view/1781729779
>
> It: handles the above thingy, performs a backtrace on queries so you
> can tell which file/function generated w
http://groups.google.com/group/chaw
--~--~-~--~~~---~--~~
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-p
Yeah, I'm a bit iffy on taking specific actions on the pages as well,
but they aren't static content. I need some way of interacting with
the controllers that modify the content that won't leave the end user
confused as to which page their changes will show up on. But that
feature is still somewha
function search($item = null) {
$item = $this->params['url']['q'];
$recipes = $this->Recipe->find('all', array('conditions' =>
array('Recipe.name LIKE' => '%' . $item . '%'),
'order' =>
'Recipe.name',
Hello All,
I am trying to build a form where:
A registered "User"
Selects from a checkbox list their "Interests"
and also
Selects from a radio list thier "Experience Level" associated with
each "Interest".
An example of the way the form will look follows:
User Information:
User Id 100
Fir
gkc:
If I understood your question correctly what you want is something like this???
$aResult = $this->Model->find('all', array('limit' => 200));
or something along those lines, specifying the field that you want, or
the ones that you would like excluded.
Regards,
Alfredo
On Wed, Feb 4, 200
I've ran into similar issues with IE in the past, check your json and
make sure there are no trailing commas.
Regards,
Alfredo
On Thu, Feb 5, 2009 at 5:10 AM, yasa83...@gmail.com
wrote:
>
> Hi BrendonKoz,
>
> I am getting the chart in firefox. But when I am trying the same in
> IE. I am getti
Make a helper?
http://book.cakephp.org/view/98/Helpers
-Matt
http://www.pseudocoder.com
On Feb 5, 1:31 am, Malcolm Krugger
wrote:
> Thanks
>
> I have many view files that may use the same variables again and
> again
>
> SO I do not want to define these variables so many times ?
>
> Is there a
I was hoping to make things a little more user friendly by providing
specific links for the direction.
For now I will let Paginator control this in its default mode, but
I'll certainly keep looking for other ways to do this.
Thanks for your help Martin.
On Feb 4, 11:57 am, Martin Westin wrote
Hey all.
I've been struggling with what I would imagine should be a relatively
simple exercise.
I'm attempting to integrate the Wireless Abstraction Library (WALL)
into my Cake app, but it really isn't playing nice.
I need to be able to edit the final source code of the views. There
are certain
Hi BrendonKoz,
I am getting the chart in firefox. But when I am trying the same in
IE. I am getting this JSON Parse error.
can you please help me out on this. am in very urgent need.
On Dec 9 2008, 10:21 pm, BrendonKoz wrote:
> Ah. JSON error. If you're running OFC version 2, try downgrading
I'm new to Cake -- so forgive my ignorance.
I have a simple User object I created. I have a component that I share
across controllers to do various features, check if a username is
valid, add a user, provide a password hashing method, etc. (think of
it as a service layer.)
The register controlle
Hi again,
I thought I'd chip in with another path to hashing bliss.
Rewriting AuthComponent for your purposes envolves modifying a single
line of code. So anyone wanting non-hashed passwords by default can
achieve that in a few seconds by making a copy of the file in the core
and placing it in th
Thanks ,
On Feb 3, 3:03 pm, Braindead wrote:
> On your website you will most likely have parts that are displayed on
> every page and other parts that change.
> $content_for_layout contains the part that changes. :-)
>
> Hope that helps.
> Markus
--~--~-~--~~~---~--~-
hello guys
i m new in cakephp
i m going to develop shopping cart
how do i perform add to cart process using a qty text box & submit
button
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to th
Thanks, we have done it !!
housebolt wrote:
> echo $html->image($this->data['Model']['image_url'], array
> ('alt'=>'description'));
>
> Make sure you have pulled the image url into a view var first (like
> $this->data or by using $this->set() in your controller), and also
> make sure the htmlhelp
Sure thing.
This is a copy of my overridden datasource for a project I did last
month: http://bin.cakephp.org/view/1781729779
It: handles the above thingy, performs a backtrace on queries so you
can tell which file/function generated which query (neat for
debugging) and syntax-highlights it. Eac
On Feb 5, 11:14 am, Dardo Sordi Bogado wrote:
> Hint: Are you including the username field?
>
Yep. Initially I did not, but to do the latest test I used the same
view for both actions, so to have the same data posted. The debug in
fact looks the same a part from the password field that in one c
Hi Aidan,
Sorry, but automatic hashing was not a stumbling block for me. I has a
whole set of other issues when first implementing AuthComponent. But
that is hardly relevant. I see lots of questions about authentication
and passwords, too.
There is a simple and exceedingly common was to eliminate
You can also use DataSource::expression() to handle functions; if you
need something other than NOW().
More details in this thread:
http://groups.google.com/group/cake-php/browse_thread/thread/cb5542bf68211624
hth
grigri
On Feb 5, 7:17 am, Miles J wrote:
> Oh derr, that totally didn't cross m
Hint: Are you including the username field?
On Wed, Feb 4, 2009 at 11:34 AM, Mirthis wrote:
>
> Yes that was a typo. Both the actions are in the User controller, and
> Auth is enabled for all actions of the controller, through the
> beforefilter method.
> As soon as I can I'll do a further check
I think the Chaw repository is an excellent idea.
Are there plans to include a download link?
If don't have SVN or GIT set up, how do I download projects?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
try with
Configure::write('Session.checkAgent', false);
Configure::write('Security.level', 'medium');
On Feb 5, 9:26 am, Cjo wrote:
> Hi all,
>
> I have peculiar issue right now.
>
> When ever i double click on a link or a button, I get session out and
> thrown out.
>
> Is this my configuration
I've found the problem: I've used v0.4.6, and you have probably
v0.5.2. I'll update the artice since there are many changes made
between these two versions.
The last time I updated an article, it got unpublished again for some
reason, so please be patient :-)
On 5 feb, 03:20, Kyle Decot wrote:
Hi all,
I have peculiar issue right now.
When ever i double click on a link or a button, I get session out and
thrown out.
Is this my configuration issue and is there any remedies.
Can I get some help.??
Regards
Sijo Jose C
--~--~-~--~~~---~--~~
You received th
jason is yourself? The last line just shows that you are the user running grep.
Just look in httpd.conf for User [whatever]
On Thu, Feb 5, 2009 at 2:24 AM, neridaj wrote:
>
> Running ps aux | grep httpd returned the following:
>
> root 5886 0.0 4.0 205960 20460 ?S20:33 0:05
Hi Bakers,
Can we have a discussion about rewriting the Auth component to remove
the numerous issues involved with automatic hashing?
Although forcing users to automatically hash their users password is a
nice idea, the current implementation a major stumbling block for
every single person that
I forgot to add one line before returning true, and that is
$queryData['conditions'] = $conditions;
2009/2/5, Günther Theilen :
>
>
> OK, thanks.
>
> But I thought maybe there was a way to do something like
> var $conditions = array('active' => 1);
> in the model, as I can to with $order or $displ
81 matches
Mail list logo