lready it seems to work too but only at some places...i want
> photo/:action to be blocked completely
>
>
> On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote:
>
>> In routes.php
>>
>> On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote:
>> >
>>
mipara" wrote:
> >
> > hi all,
> >
> > i have doubt regarding routing...
> > i want to replace
> >
> > url : /photo/* with /image/* everywhere basically i want name
> of controller to be replaced.. in addition /photo url should no
i did that already it seems to work too but only at some places...i want
photo/:action to be blocked completely
On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote:
> In routes.php
>
> On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote:
> >
> > hi all,
> >
In routes.php
On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote:
>
> hi all,
>
> i have doubt regarding routing...
> i want to replace
>
> url : /photo/* with /image/* everywhere basically i want name of
controller to be replaced.. in addition /photo u
Try
Router::connect('/image/:action',array('controller'=>'photo'))
On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote:
>
> hi all,
>
> i have doubt regarding routing...
> i want to replace
>
> url : /photo/* with /image/* eve
hi all,
i have doubt regarding routing...
i want to replace
url : /photo/* with /image/* everywhere basically i want name of
controller to be replaced.. in addition /photo url should no longer work.
or it should be renamed and redirected to /image/*
is it possible...
if yes
Yes, keep your javascriptMVC code in weroot folder and build cakePHP app
using REST webservice (cakephp inbuilt feature) this way you build service
oriented architecture for your project, I have same structure in my project.
On Thu, Oct 11, 2012 at 6:06 PM, Dr. Tarique Sani wrote:
> On Thu, Oc
On Thu, Oct 11, 2012 at 3:12 PM, Sathia S wrote:
>
>> I would develop the javascript MVC application to be independent of
>> the CakePHP application and not try to put the js MVC into the webroot
>> of the cakePHP app
>>
>> So it would be easier if you think of your project as two separate
>> proj
> I would develop the javascript MVC application to be independent of
> the CakePHP application and not try to put the js MVC into the webroot
> of the cakePHP app
>
> So it would be easier if you think of your project as two separate
> projects.
>
> Hi. Thank you for reply. Is that correct way to
I would develop the javascript MVC application to be independent of
the CakePHP application and not try to put the js MVC into the webroot
of the cakePHP app
So it would be easier if you think of your project as two separate projects.
Most jsmvc frameworks just expect URL endpoints to get and pos
Hi,
I have'nt worked in javascriptmvc with any other server side framework.
Eg. can i attain following task with javascript framework, If a user posted
a post (saved in database), other user (in another system) will be
displayed the post without refreshing the page.
i heard than rails with backb
and submitting form.. but whwn i do the
>> same in main server.. i didn't get the value of captcha stored in
>> session??? pls anyone clear this doubt by giving effective
>> solutions??? beacuse of this pblm by project is in vain
>>
>> --
>> Our newest
rm.. but whwn i do the
> same in main server.. i didn't get the value of captcha stored in
> session??? pls anyone clear this doubt by giving effective
> solutions??? beacuse of this pblm by project is in vain
>
> --
> Our newest site for the community: CakePHP Video Tutoria
with captcha and submitting form.. but whwn i do the
same in main server.. i didn't get the value of captcha stored in
session??? pls anyone clear this doubt by giving effective
solutions??? beacuse of this pblm by project is in vain
--
Our newest site for the community: CakePHP Video Tuto
hello,guys i got amuch perfect logic fro our cakephp buddy rodigreas..
he ask me to link from offerpromo table to offer..and use belongs to
condition and i write it like this:-
function getallhot(){
$this->belongsTo=
array('Offer'=>array('className'=>'Offer','foreignKey'=>'o
gt; array('Offerpromo.end_date <' . date()),
'joins' => array(
array( 'table'=>'db_offer',
'alias' => 'Offer',
'conditions'=>''Offer.offer_id = Offerpromo.offer_id))
);
Hello, i have a doubt regarding join in cakephp. i have a primary key
which is a foreign key of other table... i want to retrieve the table
along with values s in othertable by checking some condition sin two
tables.
fields in first table:- db_offer
offer_idseller_id
Anyone know how to do it?
Thanks
--
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
cake-php+un
Hi all,
First, thanks for the answers that you have gave me.. They really
helped!
I`m having a trouble, in making a simple route.
What ever is the controller, or action, if there is a /validate_fields
in the end, i want cake to see it like: :controller/validate_fields
ex.:
/someController/someAct
Hi,
Thank you for your reply.
>
> [{"id":1,"value":"villivakkam","label":"villivakkam", }]
>
I tried this too . even now i cannot view list.
Regards
sathia
http://www.sathia27.wordpress.com
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the n
I think you should add a "label" value to the results
[{"id":1,"value":"villivakkam","label":"villivakkam",}]
On 29/09/2011 19:03, Sathia S wrote:
Hi,
I am working in basic of autocomplete in cakephp. When i enter th
text in input, i request for server and return json output (i.e) it
sho
Hi,
I am working in basic of autocomplete in cakephp. When i enter th text in
input, i request for server and return json output (i.e) it shows result in
firebug. I am not getting list in view.
In view file
[code]
$songs_array = array();
foreach($songs as $key => $value){
array_push($
Hi! I've a doubt with a relation, this's my db model
*Permissions* (eg: Add, view, edit, ...)
- permission_id
- description
*Pages* (eg: Users, Reports, ...)
- page_id
- description
*Permissions_Pages* (this has all the actions in a page, eg: Users add,
On Sun, May 22, 2011 at 9:37 AM, O.J. Tibi wrote:
> Hi Sathia,
>
> In practice, it's actually better to give the user a utility to
> "reset" the password instead of "resending" the password. Easiest
> steps are:
>
> * Create a system-generated password, make sure it's in cleartext
> first.
> * St
Hi Sathia,
In practice, it's actually better to give the user a utility to
"reset" the password instead of "resending" the password. Easiest
steps are:
* Create a system-generated password, make sure it's in cleartext
first.
* Store the Auth::password() hash of the generated one into the
database
> You can't; that's what "hash" means.
>
> http://en.wikipedia.org/wiki/Cryptographic_hash_function
>
> To validate a user who's trying to log in, you hash the password the user
> entered, then compare it with the hashed password in the database. The
> tutorials, demos and documentation should expl
On May 21, 2011, at 11:12, Sathia S wrote:
> to hash the password, we can used
> $this->Auth->password('password')
>
> and how to unhash passsword from database .
You can't; that's what "hash" means.
http://en.wikipedia.org/wiki/Cryptographic_hash_function
To validate a user who's trying to
cannot :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/5/21 Sathia S
> to hash the password, we can used
> $this->Auth->password('password')
>
> and how to unhash passsword from database .
>
>
> Thank u advance
>
> --
> Regards
>
> sathia
> http://www.sathia27.wordpress.com
>
> --
> O
to hash the password, we can used
$this->Auth->password('password')
and how to unhash passsword from database .
Thank u advance
--
Regards
sathia
http://www.sathia27.wordpress.com
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
I reversed the order
> var $components = array('Auth', 'Session');
but it's still not working as expected,
i'm running it on cake 1.3.5
On 13 nov, 17:28, cricket wrote:
> On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote:
> > I have this in my app_controller
>
> > var $components = array('Sessio
On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote:
> I have this in my app_controller
>
> var $components = array('Session', 'Auth');
The order of those should be reversed:
var $components = array('Auth', 'Session');
At least, at one time that was important. I don't know if it's still necessary.
I have this in my app_controller
var $components = array('Session', 'Auth');
function beforeFilter(){
parent::beforeFilter();
# thanks to
http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/
if (isset($this->params['admin'])) {
On Thu, Nov 11, 2010 at 11:44 PM, huoxito wrote:
> Thats what I thought as well, but it doesnt happen,
>
> If I just let $this->Auth->allow(‘*’) in my app_controller all actions
> are accessible without being logged in, even my admin_* methods
Perhaps Auth isn't properly configured in
AppControll
Thats what I thought as well, but it doesnt happen,
If I just let $this->Auth->allow(‘*’) in my app_controller all actions
are accessible without being logged in, even my admin_* methods
On 11 nov, 18:22, cricket wrote:
> On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote:
> > found what i was loo
On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote:
> found what i was looking for, guess I just had to add this condition,
> thanks to this post
> http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/
>
> if (isset($this->params['admin'])) {
> $this->Auth->d
found what i was looking for, guess I just had to add this condition,
thanks to this post
http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/
if (isset($this->params['admin'])) {
$this->Auth->deny(‘*’);
}
else {
$this->Auth->allow(‘*’);
}
Is there a si
I hadn't tried to use admin routes in cakephp yet. When i first read
about I believed that I would get through it quickly but no
I cant figure out a way to let all my actions, without the admin
prefix, be accessed without a user logged in, authenticated by the
Auth component.
I already added
You need to create the database table called "catgories".
That kinda looks like a typo in your controller or model name also. Did you
mean "categories"?
On 27/08/2010, at 6:32 PM, anbu arasu wrote:
> Hai, I successfully baked model for the table "catgories", but when try to
> bake controlle
Is your table really named catgories (notice the missing 'e')?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 27 Aug 2010, at 09:32, anbu arasu wrote:
> Hai, I successfully baked model for the table "catgories", but when try to
> bake controller for the sam
Hai, I successfully baked model for the table "catgories", but when try to
bake controller for the same table, I faced the following named error *"Missing
database table 'catgories' for model 'Catgory'*
can any one help me...
Check out the new CakePHP Questions site http://cakeqs.org and help o
Dear cronies
I had faced one error when I run cakephp, that is..
*Notice*: Trying to get property
of non-object in *C:\xampp\htdocs\aha\cakephp\cake\libs\cache\file.php* on
line *244*
*Fatal error*: Call to a member function cd
See this
http://coding.derkeiler.com/Archive/PHP/comp.lang.php/2008-05/msg01238.html
On Thu, Mar 11, 2010 at 1:14 PM, selvam dilli wrote:
> hi
> i have a doubt in php
>
> /*php
> $a=10.43;
> echo gettype($a);
> var_dump($a);
> ?>
>
> */
> the output for gett
Don't doubt :) search for the reason! For example at:
http://lv.php.net/manual/en/function.gettype.php
where it is written that:
Possibles values for the returned string are:
...
* "double" (for historical reasons "double" is returned in case of a
float, and not simpl
hi
i have a doubt in php
/*php
$a=10.43;
echo gettype($a);
var_dump($a);
?>
*/
the output for gettype( $a) is double
an for var_dump is float.
how does php treats float and double.
what is the difference between float and double in php.
regards
selvam
Check out the new CakePHP Questions s
Make a small script that will give you the php information:
[code]
[/code]
Then look for the Apache configuration, find the row named "Loaded
Modules" and in the adjoining cell, find mod_rewrite.
If it is there, you have mod_rewrite available to you!
Enjoy
John
On Mar 11, 7:45 am, sooraj fra
hi
I am new to cakephp. I am using apache version _2.2.15. i dont have
access to to the htdocs. Is there any way i enable the mod reewrite
option with in our cakephp application using .htaccess. How i can
know whether mod_rewrite is enabled.
Check out the new CakePHP Questions site http://cakeqs
Hi
I'm following this tutorial (in particular Part 4):
http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake4/section4.html
it uses a join table for a many-to-many relation between Users and
Products (representing favorite products of users):
CREATE TABLE products_users (
produ
Hi,
I'm developing a project with CakePHP and after read some tutorials
about Acl and Auth, I still have a doubt.
In all the tutorials I've read, the Acl system is based on allowing or
denying access to actions. I will need this too, but I'll also need to
allow or deny access t
On the other hand, to answer your question, you can always use:
ClassRegistry::init('ModelName')->find(...)
to read data from a model in a view.
I often use this approach in cached elements, that display things like
"yesterdays stats" where the read access is needed but only once per
day then c
I don't see it as making the controller "fat", really. It's where
this call belongs. I usually think of fat controllers as doing some
of the models' heavy lifting for them.
But in this case, putting the code in your controller is clearly the
right thing to do, by Cake's MVC principles.
Don't w
Just be careful with requestAction. If you don't cache properly you
can dramatically slow down your application. Mark Story has some good
tips on requestAction use at his blog (http://mark-story.com/)
On Sep 28, 12:15 pm, John Andersen wrote:
> It will not be much more fat, as the only thing eac
hi Mark
> 1.3 will not be implementing object results from models. 1.3 is still
> php4 compatible, and is a _minor_ version release. Switching out the
> lower levels of how models work is not a minor change. Perhaps you
> are thinking of CakePHP 2.x?
Ahh, ahem - yes, I was
--
jon bennett
1.3 will not be implementing object results from models. 1.3 is still
php4 compatible, and is a _minor_ version release. Switching out the
lower levels of how models work is not a minor change. Perhaps you
are thinking of CakePHP 2.x?
-Mark
On Sep 24, 3:25 pm, Jon Bennett wrote:
> Hi,
>
> >
It will not be much more fat, as the only thing each function used by
a requestAction should be doing, is to call the model and return the
models data.
Enjoy,
John
On Sep 28, 12:46 pm, hunny wrote:
> On Sep 25, 10:27 am, John Andersen wrote:
>
> > Look into the controllers method "requestAct
On Sep 25, 10:27 am, John Andersen wrote:
> Look into the controllers method "requestAction", which allows you to
> retrieve the list of clubs in a view!
> Enjoy,
> John
>
> On Sep 24, 11:59 am, hunny wrote:
>
> > Hi Guys,
>
> > I am new to cakephp. I am having the following issue:
>
> > I
Look into the controllers method "requestAction", which allows you to
retrieve the list of clubs in a view!
Enjoy,
John
On Sep 24, 11:59 am, hunny wrote:
> Hi Guys,
>
> I am new to cakephp. I am having the following issue:
>
> I am displaying list of checkbox containing clubs to a login user.
Ever heard of a can of worms :)
(The whole "-This is MVC. -No, this is MVC" thing can turn nasty at
times.)
Cake allows no direct access to Models from Views. That is how the MVC
pattern has been implemented in Cake even though there are other
interpretations in other Frameworks. If everyone had
Hi,
> Basically i am looking for something similar like View Helpers in
> Zend. We can access the model data in views using view Helpers. Is
> there something similar in cakephp.
Short answer: you can't.
Longer answer: as the current version of cake is both php4 and 5
compatible, it uses arrays
Hi Guys,
I am new to cakephp. I am having the following issue:
I am displaying list of checkbox containing clubs to a login user. The
list of clubs I am passing through the models via controllers in the
traditional way.
Now the logged in user should see his list of clubs automatically
ticked. T
Hi everybody,
I new in cake, could you help me to format a data array?
I have this $data
array {
[0]=> array {
["Timetable"]=> array {
["slot_id"]=> "2" }
["Subject"]=> array {
["name"]=> "CAD" }
["Typeclass"]=> array {
["name"]=> "T1" }
["Room"]=> array {
> I used the following codebut it is not working.
what is not working? saving? validation?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegrou
Hai
I want to validate the user input from the text box from the form to
be not empty before saving it.
I used the following codebut it is not working.
This one is in models_controller
function add()
{
if(!empty($this->data))
{
$ModelName=$this->data['models'
I am having two models(Model,Vehicle)
Each of the model having two table,(models,vehicles)
Now my problem is that in my vehicles table
I am having following field (model_id,Number,model_id)
For inserting record to this i am using form with text box for number
input and combo box for model which re
Hi.
The error messages indicates the undifined index of "total". Is it right?
I think you mistake the data structure which Model::query returns.
If you put the statement "print_r ($t);" in the model code, you can
understand the problem quickly.
The structure of $t is below:
Array
(
[0] =>
Any body can explain Custom Queries with example...
My problem is that ..i have two table
1)campaigns
2)donations
i need the total amount of particular campaign by using the sql
query..
CODE
SELECT sum(amount) as total FROM `v1_donations` WHERE campaign_id=1
campaign Model
CODE
function getTotal
Hi,
I want to have two branches on my AROs tree.
One is for a typical controllers/actions authorization systems. It
works perfectly.
The second one is for a "privileges" based authorization inside
actions. For example: I want to allow two groups access to the same
action, but one group ca
Thanks Chris, I though exactly the same idea. Retrieve the user from DB
using Auth and in isAuthorized check if he's allowed to run certain
functions. What I would like to know is where can I check if Admin Routing
is being used in that request. I mean, how can I ask Cake if the requested
URL is /a
On Mon, Apr 28, 2008 at 8:58 PM, Nicolás Andrade
<[EMAIL PROTECTED]> wrote:
> Thanks for your time. I will print at least the 3 or 4 first pages of the
> link you've sent to read in the bed, before sleeping.
>
> Any other suggestion??
When I have users that need to have different levels of access
Common sense?
Cheers,
mbavio
On Apr 28, 9:58 pm, "Nicolás Andrade"
<[EMAIL PROTECTED]> wrote:
> Thanks for your time. I will print at least the 3 or 4 first pages of the
> link you've sent to read in the bed, before sleeping.
>
> Any other suggestion??
>
> Greets!
>
> Nicolás Andrade
> (Wikipedi
Thanks for your time. I will print at least the 3 or 4 first pages of the
link you've sent to read in the bed, before sleeping.
Any other suggestion??
Greets!
Nicolás Andrade
(Wikipedia Reader)
On Mon, Apr 28, 2008 at 7:51 PM, Marcin Domanski <[EMAIL PROTECTED]> wrote:
> Ok
> You _don't_ need
Ok
You _don't_ need 2 models for different users , will you make a third
one for moderators ? 4th for editors ? 5th...
Why not make a user table with an 'is_admin' bool field and check on
that ? Or even more generic - a 'role' field.
Try to read some more on database design (you can start at wikipe
Problem: Using different tables for Auth Components (Users and Admins
Tables)
I was thinking...
If I browse to /admin/users/ I will be asked for an admin login; and the
login will be checked with the admin table.
If I browse to /users/editProfile/ I well be asked for an user login; and
the lo
Hi to all; as a few days ago was suggested in this list; I started using
AUTH component and Admin Routing to validate Administrators.
Now, I've 2 "Users" models; (Front End) Users and Admins.
Each Admin function has Admin_ on it's name. Ok.
In the Users controller appears the problem.
The Adm
On Apr 24, 2008, at 2:47 PM, Chris Hartjes wrote:
> On Thu, Apr 24, 2008 at 4:15 PM, Nicolás Andrade
> <[EMAIL PROTECTED]> wrote:
>> I mean I can separate tasks using a SiteAdmin folder, password
>> protected.
>> But in CakePHP, I don't know how to separate things. Any user which
>> registers
On Thu, Apr 24, 2008 at 4:15 PM, Nicolás Andrade
<[EMAIL PROTECTED]> wrote:
> I mean I can separate tasks using a SiteAdmin folder, password protected.
> But in CakePHP, I don't know how to separate things. Any user which
> registers himself will use the User model; and me as administrator will use
Hello everybody; this is my first message in this group as I've started
developing with CakePHP last monday.
I saw lot of manuals, HowTos, guides and forums; but I have not found a
place where solve this doubt.
You know ussually Web Sites have a structure which seems like that:
-Root
*inde
GO read this again: http://manual.cakephp.org/chapter/models
And then create a join table called communities_students
Then change your community table's name to "communities".
Then do a hasAndBelongsToMany definition in your student and community
models.
Than read this _again_: http://manual.c
Adi,
On Sat, 30 Jun 2007, Adi Mallikarjuna Reddy V wrote:
> Let us say I have three tables Students, Community and Stu_Comm. They
> capture that each community has some students associated with it. I define
> three models for the three tables. Now the question, since I captured
> hasMany relati
Dear all,
I have a fundamental doubt in defining associations in the models.
Let us say I have three tables Students, Community and Stu_Comm. They
capture that each community has some students associated with it. I define
three models for the three tables. Now the question, since I captured
uhh..also, you could have misplaced the .htaccess files when you moved
everything over
mohan wrote:
> i have installed and configured cake php successfully in xampp under
> the folder htdocs\cake
> i got the following message also
>
> Your database configuration file is present.
>
> Cake is
On 5/30/07, mohan <[EMAIL PROTECTED]> wrote:
> Kindly offer a solution as early as possible
I hear that the manual offers a lot of solutions as early as you can read it.
Do you have mod_rewrite enabled for your web server?
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
@TheBa
On May 30, 2007, at 8:30 AM, mohan wrote:
>
> i have installed and configured cake php successfully in xampp under
> the folder htdocs\cake
...
> http://localhost/bookmarks/
Should this be http://localhost/cake/bookmarks if you've installed
CakePHP in /htdocs/cake?
-- John
--~--~
i have installed and configured cake php successfully in xampp under
the folder htdocs\cake
i got the following message also
Your database configuration file is present.
Cake is able to connect to the database.
i have created a database called project and with table name as
bookmarks.
I hav
Hi people!
I'm loving cake-php but have some doubt can you help me?
I cant understand very well how to use scriptaculous and prototype ajax
libraries. How and where i define my own method for example?
In my experience with mojavi framework I uses xajax as ajax library and
seems to me very
It was exactly what i was looking for...
Thank you, it worked.
I wish this information was documented in cake-api =/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send em
Recursive 0 still includes belongsTo and hasOne relationships (IIRC).
set recursive to -1 to remove all associations and only query the
direct model with no joins.
HTH,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
Hello people.
I was wondering about this piece of code:
$aux = $this->PessoaFisica->find("PessoaFisica.cpf =
'{$this->data['Form']['cpf']}'", array('cpf'), null, 0);
pr($aux);
which outputs this:
Array
(
[PessoaFisica] => Array
(
[cpf] => 123
)
)
Fine, but my
87 matches
Mail list logo