help i cann't saving data with save that have assosiated
*nb*: *all my table used Inflector::rules('uninflected',
['dontinflectme']), so i don't have proble with naming convension*
*this is my model table*
class KaryawanTable extends Table {
/**
* Initialize method
*
*
CakePHP custom ACL Authorization using acos, aros aros_acos Acl tables
with extension api_
I am developing an restful API using CakePHP, I am trying to implement a
custom authorization which authorize user using ACL, code looks something
like
?php
App::uses('BaseAuthorize',
I know this is somewhat of a troll answer, but:
This should be possible with some tweaks to core variables, but why in the
world would you want to do that? If your answer is that you know Smarty and
not CakeViews I'd suggest you take 4 hours of reading and you will be
pretty comfortable with
https://lh4.googleusercontent.com/-nLw9Z5cAQMA/U4yjLThSyKI/BQo/1A8pwa3w5wo/s1600/CakePHP+error.jpg
Here is a copy of my database.php file in the
I:xampp\htdocs\cakephp\app\Config folder ('I:\' being the drive I installed
xampp into)
?php
/**
*
*
* CakePHP(tm) : Rapid
Hello,
I am trying to integrate smarty template with cakePHP and for that I refer
http://bakery.cakephp.org/articles/tclineks/2006/10/27/how-to-use-smarty-with-cake-smartyview
document
and came to know it very old one still i modified some steps and reach till
include helpers in
I need help with this. I'm creating a checkbox to select or deselect the
country options. Please help to give some clues and explaination. I'll be
very grateful. Thanks in advance.
Below are the code:
*Location: View/country/add.ctp file*
script type=text/javascript
$(document).ready(function
, name = selectedId));
$('#selectall').click(function () {
var checked = $(this).is(':checked');
$('.countries input[type=checkbox]').each(function(){
$(this).prop('checked', checked);
});
});
On Friday, November 15, 2013 1:05:52 AM UTC-5, Sally wrote:
I need help with this. I'm creating
I need some help on implementing the below query for $this-paginate()
SELECT *
FROM `table1`
WHERE name like '%n3%' AND code NOT
IN (
SELECT code
FROM table2
)
UNION SELECT *
FROM table2
where name like '%n3%'
I want to get the paged resultset and count value also.
--
Like Us on FaceBook
I followed this
tutorial:
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper%3a%3afile
*My View / Form*
?php echo $this-Form-create(User, array(enctype =
multipart/form-data)); ?
?php echo $this-Form-hidden(User.id); ?
?php echo $this-Form-input(User.picture_file,
On Wed, Jan 23, 2013 at 11:10 AM, Shahruk Khan shahruksem...@gmail.com wrote:
I followed this tutorial:
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper%3a%3afile
My View / Form
?php echo $this-Form-create(User, array(enctype =
multipart/form-data)); ?
echo
Nope. debug($this-data) still has no other info.
On Wednesday, January 23, 2013 1:53:27 PM UTC-5, cricket wrote:
On Wed, Jan 23, 2013 at 11:10 AM, Shahruk Khan
shahru...@gmail.comjavascript:
wrote:
I followed this tutorial:
Check your PHP configuration and ensure that your file upload settings are
appropriate for the use-case.
Also, print out the _FILES array to also check to see if PHP is accepting your
upload.
On Jan 23, 2013, at 3:09 PM, Shahruk Khan shahruksem...@gmail.com wrote:
Nope. debug($this-data)
The files were not being accepted. Solved the problem thanks! Just in case
anyone has the same problem.
You cannot serialize file upload forms via jQuery and pass them to the
controller.
On Wednesday, January 23, 2013 6:15:59 PM UTC-5, ibejohn818 wrote:
Check your PHP configuration and
I checked all files PHP, Apache and CakePHP Logs. Only access log is updating
with the address and 500 Error.
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Need-Help-about-Server-Error-500-Blank-Page-tp5713337p5713341.html
Sent from the CakePHP mailing list archive
On Mon, Jan 21, 2013 at 8:32 AM, mraheel83 mrahee...@gmail.com wrote:
I checked all files PHP, Apache and CakePHP Logs. Only access log is updating
with the address and 500 Error.
That's strange. Try adding this to your bootstrap.php
error_reporting(-1);
This will tell PHP to output all
It gives blank page and with Debug as 0 it
gives Server Error 500
Error and debug log under /app/tmp/ not appending any error.
Please advice me how should I fix this problem.
Thanks
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Need-Help-about-Server-Error-500-Blank-Page
have to make a simple video embed page and want to know the coding for it.
i need the page url to be
www.mysite.com/dm.php?v=VIDEO_IDhttp://www.mysite.com/yt.php?v=VIDEO_ID
,www.mysite.com/putlocker.php?v=VIDEO_IDhttp://www.mysite.com/yt.php?v=VIDEO_ID
I'm looking for some guidance here.
I have:
User hasAndBelongsToMany Project
Schema:
Users.id
Users.name
...
Project hasAndBelongsToMany User
Schema:
Project.id
Project.name
...
My join table:
projects_users.user_id
projects_users.project_id
Site belongsTo Project
Site.id
You don't really need to add a constraint if your code if you specify
the User.id as a condition and run your query on the User model.
In Project model:
public function fetchAll($user_id = null)
{
if (!empty($user_id))
{
return $this-User-find(
Hello cakephp member
i need table content all country and all cities relate to this countries
and other table content units measurement
and Thanks :)
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because
Can you elaborate what do you need exactly? Us to show you how u create this
schema or model using bake ?
VM
Sent from iPhone smartphone
On 2012-09-27, at 11:02 AM, Peter Nassef peter.nas...@gmail.com wrote:
Hello cakephp member
i need table content all country and all cities relate to
I don't know how likely you will find a country and all cities within each
specific country. You are more likely to find database schemas out there
that give you countries with all related states/provinces within.
On Thu, Sep 27, 2012 at 10:08 AM, Maliko V malikovinc...@gmail.com wrote:
Can
i need three table .sql content
First: All Countries
Secound: All Cities Related to Countries
Third :Units Measurement
On Thu, Sep 27, 2012 at 5:08 PM, Maliko V malikovinc...@gmail.com wrote:
Can you elaborate what do you need exactly? Us to show you how u create
this schema or model using
I guess I question what you would like this data set for. Looking at this
from a large scale of the United States I know there are a number of city
names that are duplicated across multiple states. Now I don't know if this
is the same across the rest of the world but you may need to rethink what
I agree knowing what the dataset is for might help with the answer. I don't
know but I would have thought Units of Measurement are set per Country rather
than by City?
Paul
On 27 Sep 2012, at 16:44, Jonathan Sundquist jsundqu...@gmail.com wrote:
I guess I question what you would like this
Any idea guys?
*With Best Regards,
Mohit Kumar http://kumarmohit.com*
*+91-9582894570*
On Thu, Aug 9, 2012 at 11:03 AM, mohit kumar mohitk...@gmail.com wrote:
Hi Folks,
Can anyone help me regarding this.
i'm not understanding you well, describe more about your problem..
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/8/10 mohit kumar mohitk...@gmail.com
Any idea guys?
*With Best Regards,
Mohit Kumar http://kumarmohit.com*
*+91-9582894570*
On Thu, Aug 9, 2012 at 11:03 AM, mohit
How can i display the data in this format. [] are checkboxes
1.
2. Users Shift1 shift2 shift3 shift4
3. user1[] [] [] []
4. user2[] [] [] []
5. user3[] [] [] []
6. user4[] [] [] []
7. user5[] []
On Fri, Aug 10, 2012 at 10:05 AM, mohit kumar mohitk...@gmail.com wrote:
How can i display the data in this format. [] are checkboxes
Users Shift1 shift2 shift3 shift4
user1[] [] [] []
user2[] [] [] []
user3[] [] [] []
user4[]
thanks Mike.. Let me try that . But the problem is my controller that i
generated by the bake is like
user -
shift -
save so with 1 form 1 can save only one user, will it be possible for me to
save multiple mappings with one go
*With Best Regards,
Mohit Kumar http://kumarmohit.com*
http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-saveall-array-data-null-array-options-array
Dana petak, 10. kolovoza 2012. 11:24:07 UTC+2, korisnik mohit napisao je:
thanks Mike.. Let me try that . But the problem is my controller that i
generated by the bake is like
user
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar mohitk...@gmail.com wrote:
thanks Mike.. Let me try that . But the problem is my controller that i
generated by the bake is like
user -
shift -
save so with 1 form 1 can save only one user, will it be possible for me to
save multiple mappings
I'm looking for some help with reverse routing as the documentation is a
bit thin. Particularly for use with rendering objects such as
PaginatorHelper.
I have a URL in the format - /state/city/page/slug which I route with -
Router::connect('/:state/:city/:page/*', array(
'controller' = 'pages',
Here's a generic element I use for pagination:
http://pastebin.com/JvKbyWUi
Perhaps you can modify that to your own needs. With Cake 2.x I've had
to make some changes to what I had been using. I suppose that I must
be doing something wrong that it requires the AppController snippet.
I think
cricket - thanks for the reply, I will try it and see if it works.
Thanks
Mark
On Friday, August 10, 2012 4:18:32 PM UTC-4, cricket wrote:
Here's a generic element I use for pagination:
http://pastebin.com/JvKbyWUi
Perhaps you can modify that to your own needs. With Cake 2.x I've had
Thank you all very much...I spoke with Larry form Cake DC who helped me get
it running. He did explain to me that i needed to provide more info
concerning the problem. Thanks again to you all.
On Monday, July 16, 2012 9:40:06 AM UTC-4, Lboogie wrote:
Hello, i am trying to install a project
how i hate those non-sense for-crying-out-loud thread titles^^
Am Montag, 16. Juli 2012 15:40:06 UTC+2 schrieb Lboogie:
Hello, i am trying to install a project manager created with cake php but
can't seem to trigger the install option when there is no install folder or
files to do so...can
Are you able to help or not...isn't this what is group for? Excuse me if
i'm wrong
On Monday, July 16, 2012 10:20:12 AM UTC-4, euromark wrote:
how i hate those non-sense for-crying-out-loud thread titles^^
Am Montag, 16. Juli 2012 15:40:06 UTC+2 schrieb Lboogie:
Hello, i am trying to
http://book.cakephp.org/2.0/en/installation.html
On Mon, Jul 16, 2012 at 11:15 AM, Lboogie lindamichellewat...@gmail.comwrote:
Are you able to help or not...isn't this what is group for? Excuse me if
i'm wrong
On Monday, July 16, 2012 10:20:12 AM UTC-4, euromark wrote:
how i hate those
this is group for help, but you have to corrent describe your problem, give
us your details (cake version, php version, server type, problem)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/7/16 Lboogie lindamichellewat...@gmail.com
Are you able to help or not...isn't this what is group
On Mon, Jul 16, 2012 at 11:40 PM, Lboogie lindamichellewat...@gmail.comwrote:
Hello, i am trying to install a project manager created with cake php but
can't seem to trigger the install option when there is no install folder or
files to do so...can anyone help me?
Perhaps you just unzip it
Often it is easier to create a model for the linking table, i.e.
OrderProduct and use belongsTo Order and Product rather than using HABTM
associations. Then query using that model.
Mark
On Monday, June 25, 2012 11:10:11 AM UTC-4, Caio Vncius wrote:
Hello,
need a help in a ratio of two-mode
putting URGENT in your subject line is a sure fire way to get your
questions ignored and get replied with mindless answers such as this one :p
On Monday, June 25, 2012 10:10:11 PM UTC+7, Caio Vncius wrote:
Hello,
need a help in a ratio of two-mode HABTM tables.
I have a table called orders
On Tue, May 22, 2012 at 3:25 PM, dpinion dpin...@gmail.com wrote:
Ok, I am somewhat new to cake, have spent the past two days on this
and I am just not getting it. Hope someone can shed some light on it
for me. I have two tables:
icons_controller.php:
?php
class IconsController extends
Ok, I am somewhat new to cake, have spent the past two days on this
and I am just not getting it. Hope someone can shed some light on it
for me. I have two tables:
product_icons
id (int)
product_id (int, foreign key to a products table)
icon_id (int, foreign key to product_icon_types table)
p id=post3
/p
p
?php echo $ajax-link(
'Response will be add at the top of selected element',
array( 'controller' = 'ajax', 'action' = 'view', 3 ),
array( 'update' = 'post3', 'position' = 'prepend')
);
?
/p
Where to use this and it shows error like
Undefined variable: ajax
which cake version ??
$ajax is helper, if you use Cake 2, than use $this-Ajax instead
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/5/1 Ankit Patel an...@eternalsoftsolutions.com
p id=post3
/p
p
?php echo $ajax-link(
'Response will be add at the top of selected element',
I am using cakephp 2.1.1
and now it shows like this
Error
The requested address was not found on this server.
When I am using ajax
--
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
Any ajax is not working actually so please help me with I want to use this
example
http://www.cakephp.4uk.pl/ajax/link
I have included helper in Post controller and also in the app controller
should I work
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Hi Experts,
Greetings!!
Just need some help on good documents and video tutorials on Cake PHP.
I am working with WordPress, for last 2 years.I want to learn cake php.I
have searched internet and found many good tutorials.
But it would be very helpful if you can send me some good links for Cake
Your first resource should be the book[1]. You can also look at
screencasts[2] and sign up for classes that will teach you the basics and
get you going[3].
1: http://book.cakephp.org
2: http://tv.cakephp.org/
3: http://training.cakephp.org/
On Thursday, March 1, 2012 5:44:07 AM UTC-8, mohit
I am hoping someone can help me out here. I am pulling my hair out.
For some reason when I go to save edited information, form a form,
it is creating an entire new record in the database instead of just
updating the current record at hand.
I am using variable $nId to reference the record id on
It's possible your $_SESSION['nId'] is actually overwriting the
parameter being passed to the controller with 0?
Assuming you're accessing the method like such: /networks/add_network/nID
If you want to avoid creating a new record try:
$this-Network-id = $nId;
$this-Network-save($this-data);
Stephen,
STILL NOT WORKING... :(
Thanks for the reply and suggestion. However the method you suggested
gives me different results.
This is what I ended up using:
[code]
$mySaveId = $this-Network-id = $nId;
$networkId = $this-Network-save($this-data);
[/code]
Nothing is saved (editing record)
Ok so I figured out what the issue was.
When posting changes the form was not going to /network/add_network/
$nId it was only going to /network/add_network/ so this is why it
would lose the $nId parameter.
A couple of factors for this issue (main one below):
1) when I set the variable from
http://book.cakephp.org/view/1323/Containable#Containing-deeper-associations-1325
Have you followed the steps in the above documentation?
In model add the behavior, using the actsAs property.
Then before you do your find, list the Relationships you want to contain...
Thanks guys but i couldn't manage to do can some one give me a hand.
On Wed, Dec 14, 2011 at 7:07 PM, Geoff Douglas drdouglas...@gmail.com wrote:
Like Andras said..
Containable is what you need, it is simple and awesome!
--
Our newest site for the community: CakePHP Video Tutorials
Thank you very much, I got it!
On Wed, Dec 14, 2011 at 4:45 AM, Andras Kende and...@kende.com wrote:
Ersin,
You could do 2 queries:
$event = $this-Event-find('first', array('conditions' = array('Event.id'
= $id)));
$comments = $this-Event-Comment-find('all', array('conditions' =
Like Andras said..
Containable is what you need, it is simple and awesome!
--
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
Hi, I am trying to create an events website with cakephp 1.3, I have
already created event, comment and user model. The users can add
comments for events and add events.
in my event view page I want to show the event with its comments and
show who added the event and comments for the event.
I
Ersin,
You could do 2 queries:
$event = $this-Event-find('first', array('conditions' = array('Event.id' =
$id)));
$comments = $this-Event-Comment-find('all', array('conditions' =
array('Comment.event_id' = $id)));
Also take a look :
1. Be able to transform databases (can provide poor database models
and tons of data) into proper normalized data - accounting knowledge
is crucial - ability to identify commonality of many data tables and
create common models that can be extended (core document)
2. build simple crud to handle
,'user_id'=$id));
$this-$table-save();
}
$this-$table-updateAll(');
I need help
thank
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org
You don't need to use updateAll. save will do all the job to create or
update a record in db.
You also need to put the line:
$this-$table-create(); before save a new record to db
$this-loadModel($table);
$row =
On Sat, Jul 2, 2011 at 1:07 AM, taqman filler taqman...@gmail.com wrote:
I need to send data from ajax to controller
some body help me to modified code
this ajax code
ajax.js
function loadtooltip(obj, $user_id) {
//AJAX
var req = Inint_AJAX();
req.onreadystatechange =
?
$this-Html-scriptStart(array('inline' = false));
$this-Js-get('#a.button');
$this-Js-event('onmouseover','loadtooltip(this,$user_id )');
$this-Html-scriptEnd();
?
I'm doing wrong?
please suggest me
--
Our newest site for the community:
I need to send data from ajax to controller
some body help me to modified code
this ajax code
ajax.js
function loadtooltip(obj, $user_id) {
//AJAX
var req = Inint_AJAX();
req.onreadystatechange = function () {
if (req.readyState==4) {
if (req.status==200) {
Hi - I've taken over a project from another developer and am fairly
new to cake. Hopefully, I'm framing my question and approach in an
appropriate manner.
I have a page that I want to display specific search results and I
wish to name it with a specific URL. This URL returns the correct
results:
Guys,
I wanna develop multiple image uploading module for the on going projects,
here i think to use YUI uploader for that.(
http://developer.yahoo.com/yui/yuiloader/). but I couldnt find relevant
uploader.swf download link as this page says. (
I'm new cake student and i have problem with ACL on this moment.
I managed to make the simple system of limited access of the book of
the cake put that I realized an interesting thing. The user who has
less is accessed by me to the system in fact it manages to do
everything if I to work with the
Then there must be something you were not doing right. Basically,
first, you deny access to all controllers from anybody/any group. Then
usually, you make/give permission to the admin so they have access to
all controllers. It then follows by the other groups which you assign
them permissions.
Hi,
I see something...
I use $this-paginate = $options;
then
this: $options['fields'] = array('Member.id'); looks fine to me
this: $options['or'] = ... looks out of it's array conditions I would use
$options['conditions']['or'] = ...
maybe like this the fields would be recognized...
then
Hi,
$options['Member.agent_id'] = $this-Session-read('AgentId');
$options['or'] = array(
'mem_nummer LIKE' = '%'.$q.'%',
'mitg_vorname LIKE' = '%'.$q.'%',
'mitg_nachname LIKE' = '%'.$q.'%',
'mitg_strasse LIKE' =
$this-paginate['Member']['conditions'], here are conditions list to
search...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/8 heohni heidi.anselstet...@consultingteam.de
Hi,
$options['Member.agent_id'] = $this-Session-read('AgentId');
$options['or'] = array(
Hi,
An Agent has many Agentprovisions
A Agentprovision hasOne Payment
A Payment belongsTo a Member
I am now in my Agent Model / Controller.
I would like now to get a results set, where I get
- all Agentprovisions
-- with its Payment
-- its Member
the first 2 I get already with
Hi,
$payments = $this-Member-Payment-find('all', array(
'conditions' = array(
'Payment.member_id' = $id
),
'order' = array('Payment.created DESC')
));
I would like to paginate this result, how can I do this?
I find it difficult to
I think you have to use pagination on Payment model, inside the member
controller
If it is, then i will suggest the following code, if it can help.
class MembersController extends AppController {
var $uses = array('Payment’);
function xyz(){
$this-paginate = array(
...@gmail.com
wrote:
I do not think it matters if your new and need help or old cakepro
and
need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything, BREAKING
NEWS!
A NEW USER TO CAKE! Holy shit say it's not so!
People
if your new and need help or old cakepro and
need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything, BREAKING
NEWS!
A NEW USER TO CAKE! Holy shit say it's not so!
People on the board for more than a month can tell by the name basically
.
--
Larry E. Masters
On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters
naked.cake.ba...@gmail.com
wrote:
I do not think it matters if your new and need help or old cakepro
and
need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything
It's an insecurity complex for freshman programmers. Kind of like
going out on our first date and realizing your out with a mature naked
cake baker. It's enough to make anyone stutter and repeat
themselves . ;-/
People will help, you so saying your new over and over is just irritating.
and invented the Dubya-Dubya-Dubya
Good luck
On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I do not think it matters if your new and need help or old cakepro and need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything, BREAKING NEWS
if your new and need help or old cakepro and need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything, BREAKING NEWS!
A NEW USER TO CAKE! Holy shit say it's not so!
People on the board for more than a month can tell by the name basically if
your new
I do not think it matters if your new and need help or old cakepro and need
help. Why the need to emphasize?
New you say! Are you? Well then let me just drop everything, BREAKING NEWS!
A NEW USER TO CAKE! Holy shit say it's not so!
People on the board for more than a month can tell by the name
Old hag might get some of us old timers attention.
--
Larry E. Masters
On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters
naked.cake.ba...@gmail.comwrote:
I do not think it matters if your new and need help or old cakepro and need
help. Why the need to emphasize?
New you say! Are you? Well
I think the ability to say whether you're new/old doesn't depend on
how long you've been using cake but you knowledge of the ins and outs
of cake and how it all works.
On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I do not think it matters if your new and need help or old
Or Noobhag
Neat
On 12 February 2011 09:04, Larry E. Masters php...@gmail.com wrote:
Old hag might get some of us old timers attention.
--
Larry E. Masters
On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I do not think it matters if your new and need help
hag might get some of us old timers attention.
--
Larry E. Masters
On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com
wrote:
I do not think it matters if your new and need help or old cakepro and
need
help. Why the need to emphasize?
New you say! Are you? Well
Hi,
By setting 'empty' to false won't display the empty option but you need to
set an extra option having label as 'select state', right? For this, set
'empty' = 'select state' instead of false in the 4th argument of select().
Hope that helps.
Amit Badkas
PHP Applications for E-Biz:
On Mon, Jan 31, 2011 at 7:37 AM, Amit Badkas amit.sanis...@gmail.com wrote:
Hi,
By setting 'empty' to false won't display the empty option but you need to
set an extra option having label as 'select state', right? For this, set
'empty' = 'select state' instead of false in the 4th argument of
thanks
On Jan 29, 7:54 pm, cricket zijn.digi...@gmail.com wrote:
On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker
anandghaywankar...@gmail.com wrote:
hi, bakers
i m working on one drop down list, i m getting all the values but the
first option is coming blank. i want set this
hi, bakers
i m working on one drop down list, i m getting all the values but the
first option is coming blank. i want set this as select state with
some value, like we used to in core php.
my view code is as fallows
?php
echo $form-
On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker
anandghaywankar...@gmail.com wrote:
hi, bakers
i m working on one drop down list, i m getting all the values but the
first option is coming blank. i want set this as select state with
some value, like we used to in core php.
my view
use $this-Form-input('citilist',array('options'=$state_code_list)); in
cakephp.Save all cities in database and set variale
as
state_code_list=$this-Cities-find('list',array('fields'=array('Cities.cityID','Cities.city')));
On Thu, Jan 27, 2011 at 11:23 AM, andy_the ultimate baker
hi, good morning,
i m working on project where i want create two drop down,
in first i will choose state so that the next drop down should how
the cities with respect to the state selected in first. all that i
want to create in javascript,
for that i have collected all state_code and its cities
Hi Thanks Jeremy,
but let's say we deny group manager and user to have access to users
model, and the logout function is located in users controller; would
it be a good suggestion to place the logout function in posts
controller instead because it is a public page (controller)..
Is it less
I think I found a solution:
$this-Auth-allow('logout');
Is there a better way to logout other than allowing this in users
controller?
Regards,
Maxim
On Jan 1, 10:21 pm, John Maxim goog...@gmail.com wrote:
Hi Thanks Jeremy,
but let's say we deny group manager and user to have access to users
Hi,
I'm right here: http://book.cakephp.org/view/1552/Logout
May I ask if anyone could help to point out how exactly am I to log-
out now ??
I went through some comments on that page suggested to
$this-Auth-allowedActions = array('logout');
What's your suggestion?
Kind regards,
Maxim
Check
On Dec 31, 3:01 pm, John Maxim goog...@gmail.com wrote:
Hi,
I'm right here:http://book.cakephp.org/view/1552/Logout
May I ask if anyone could help to point out how exactly am I to log-
out now ??
You access the function logout which after following the tutorial you
will have created in
Hi, thanks for the reply..
function logout() {
$this-Session-setFlash('Good-Bye');
$this-redirect($this-Auth-logout());
}
I created it in usersController alright. I access it by creating a
link to it am I correct?
I'm looking for a uniform way to put it
1 - 100 of 458 matches
Mail list logo