Configure admin and clients as prefixes in core.php
then in clients controller
admin_index()
clients_index()
index()
- S
On 16 July 2010 00:11, Davor Ilic webfa...@gmail.com wrote:
My problem is i use now my own backend which i wrote it with cakephp but
how i can use now the same
hi..
i want to popup new window in my ctp. file
i am using the link. and i want to call help.htm file,
my HTML file contain in the promoters view folder
the file name is help.htm.
i use this code
?php e($html-link('Add/edit languages',
Hi!
I'm trying to run a project written in cakephp 1.1.11.4064 on a server
PHP 5.3.2, but fails.
These are the errors:
Strict Standards: Redefining already defined constructor for class
Object in C:\Program Files\EasyPHP-5.3.2i\www\amyadler\new_site\cake
\libs\object.php on line 69
Deprecated:
You can't load HTML files out of a views folder. The file extension needs to be
.ctp . Also check you have and action defined with the same name as your view
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 16 Jul 2010, at 08:23, Master Ram ramganga...@gmail.com wrote:
hi..
i want
Cake 1.1.* is not compatible with php5.3.
You are either going to need to upgrade your app to a recent version of 1.2.*
or find a version of php 5.3
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 16 Jul 2010, at 08:26, xamako xam...@gmail.com wrote:
Hi!
I'm trying to run a
Ok
I'm try upgrade to 1.2.
Thanks!
On Jul 16, 9:33 am, mike karthauser mi...@brightstorm.co.uk wrote:
Cake 1.1.* is not compatible with php5.3.
You are either going to need to upgrade your app to a recent version of 1.2.*
or find a version of php 5.3
Mike Karthauser
Brightstorm limited
there is no. action is to be done in the help file. that help file is
static. and it contain only information about the related page.
On Jul 16, 12:31 pm, mike karthauser mi...@brightstorm.co.uk wrote:
You can't load HTML files out of a views folder. The file extension needs to
be .ctp
If it's static, put the `help.htm` file inside `app/webroot/`, then
link like so:
'onclick' = 'newPopup(' . $html-url('/help.htm') . ');',
hth
grigri
On Jul 16, 8:37 am, Master Ram ramganga...@gmail.com wrote:
there is no. action is to be done in the help file. that help file is
static. and
Yes i following like this only.. thanx lot
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I'm try upgrade to 1.2.
Why not upgrade to 1.3?
j
--
jon bennett - www.jben.net - blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
i am using ordinary search functionality in my business controller . but
now need to implement FULL TEXT SEARCH.
can any one give idea ?? Thanks in advance
take a look at http://code.google.com/p/searchable-behaviour-for-cakephp/
j
--
jon bennett - www.jben.net - blog.jben.net
Check out
haha true...
--
LP,
Tilen Majerle http://majerle.eu
2010/7/16 Jon Bennett jmbenn...@gmail.com
I'm try upgrade to 1.2.
Why not upgrade to 1.3?
j
--
jon bennett - www.jben.net - blog.jben.net
Check out the new CakePHP Questions site http://cakeqs.org and help others
with their CakePHP
I am trying to upgrade to version 1.3, but there are many errors, you
know someone guide
I've looked at:
http://mark-story.com/posts/view/getting-a-new-oven-migrating-from-cakephp-1-1-to-1-2
http://book.cakephp.org/view/411/Migrating-from-CakePHP-1-1-to-1-2
Thanks
On Jul 16, 9:35 am, xamako
http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3
j
On 16 July 2010 11:38, xamako xam...@gmail.com wrote:
I am trying to upgrade to version 1.3, but there are many errors, you
know someone guide
I've looked at:
First I am trying to migrate to version 1.2
Thanks
On Jul 16, 12:38 pm, xamako xam...@gmail.com wrote:
I am trying to upgrade to version 1.3, but there are many errors, you
know someone guide
I've looked at:
http://mark-story.com/posts/view/getting-a-new-oven-migrating-from-ca...
After I moved from a shared hosting to a VPS cake 1.3.2 does not load
custom helpers.
All core helpers are loaded, but not my custom helpers.
I my controller i have
public $helpers = array('Session', 'Html', 'Form', 'Access',
'Recaptcha');
When i try to use a custom helper from view, i get an
I'm trying to delete images when deleting the container of those
images with a cascading model::delete
The cascading works fine, but I can't get the model call back
afterDelete to work properly so I can delete the actual image files
when doing the delete.
function beforeDelete() {
In your view:
echo $this-Form-input('parent_id');
In your controllers action:
$parents = $this-User-Parents-find('list');
$this-set(compact('parents'));
On Jul 15, 9:27 pm, Cruisine cruisin...@yahoo.co.id wrote:
hi,i'm still newbie in cakePHP
i have a problem to populate my data into
Ok, for those who happen upon this thread looking for a method of
ordering their Tree children, I did a bit of digging into the actual
code and discovered that there are in fact more arguments to the
children() function than are documented in the Book. I've made
corrections to the Book which will
Why are you editing the 1.2 documentation instead of 1.3? I submitted a more
complete documentation of the reorder function a week ago after looking
through the code, but still no one has approved it. I don't know what those
cake people are doing over there. I used reorder to order by name field,
You would use the afterSave behavior on your users controller.
I think your better off using a belongsTo relationship in the case of
a user profile though.
This way your profile table contains the foreign key instead of the
user's table.
Otherwise you have to do nasty things like, save the
Hello,
I have a view that shows a television schedule, similar to DirectTVs
(http://www.directv.com/DTVAPP/epg/theGuide.jsp). It is a list of
channels and programs in a 4 hour slice broken into 1/2 hour columns.
When the schedule first loads the start time is is the most recent 1/2
hour mark.
Also, you can still make use of pre-made profiles (it kind of seems
like thats what you were wanting to do, since you said the profile is
already inserted into the DB)
I would make a profile templates table, let the user select which one
or enter data, pull in the template data, over write
You would use the afterSave behavior on your users model. I meant
model, not controller.
On Jul 16, 7:40 am, Anthony anthony.c.fra...@gmail.com wrote:
You would use the afterSave behavior on your users controller.
I think your better off using a belongsTo relationship in the case of
a user
On Thu, Jul 15, 2010 at 11:24 PM, Cruisine cruisin...@yahoo.co.id wrote:
the data had been shown in combobox..but why i still cant save the
data into database?
seems like it replaced the existing data that i choose from the
combobox..
how to solve that problem??
Set debug to 2 in core.php
On Thu, Jul 15, 2010 at 6:26 PM, xamako xam...@gmail.com wrote:
Good night
I am testing a website developed with cakephp, and seems to me a 404
error.
I have found that the mod_rewrite module is enabled, phpinfo ().
.htaccess files are correct, since they are the default files
Any ideas?
On Thu, Jul 15, 2010 at 11:23 AM, LunarDraco mdc...@gmail.com wrote:
I moved to the swiftmailer component to make better use of the SMTP
and ssl connections thus by passing most of whatever mail subsystem
was installed on the host and connecting directly to a known dedicated
smtp server.
On Fri, Jul 16, 2010 at 8:44 AM, RhythmicDevil rhythmicde...@gmail.com wrote:
Hello,
I have a view that shows a television schedule, similar to DirectTVs
(http://www.directv.com/DTVAPP/epg/theGuide.jsp). It is a list of
channels and programs in a 4 hour slice broken into 1/2 hour columns.
On Thu, Jul 15, 2010 at 5:28 PM, sanedevil sanede...@gmail.com wrote:
@Nabil, @Sam,
thanks both for your ideas! I believe for consistency sake thruout the
app, i'll stick to the controller-view-element chain (comin from a
J2EE backgrnd, its hard to break conventions and rules :) ) But of
Nodoby? :(
2010/7/15 Hugo Massaroli hu...@delapalo.com
Hi CakePHP community! I have a doubt about routing and accesing models
while routing. The thing is I have two models:
user, and group.
Both have show pages.
I want to have nicknames so I have a nicknames table and I want to access
Thanks for the reply.
The number of channels is variable but always more than a 100.
I would prefer not to cache in the client as I would still have to
serve up an entire days worth of the schedule for every user. I
definitely have to cache on the server. I think my best option, if I
cant get
On Thu, Jul 15, 2010 at 3:42 PM, Hugo Massaroli hu...@delapalo.com wrote:
Hi CakePHP community! I have a doubt about routing and accesing models while
routing. The thing is I have two models:
user, and group.
Both have show pages.
I want to have nicknames so I have a nicknames table and I
On Fri, Jul 16, 2010 at 7:18 AM, Ragnis ragnis.ar...@gmail.com wrote:
After I moved from a shared hosting to a VPS cake 1.3.2 does not load
custom helpers.
All core helpers are loaded, but not my custom helpers.
I my controller i have
public $helpers = array('Session', 'Html', 'Form',
Wow! I loved your solution. I'll try it, thanks alot!
2010/7/16 cricket zijn.digi...@gmail.com
On Thu, Jul 15, 2010 at 3:42 PM, Hugo Massaroli hu...@delapalo.com
wrote:
Hi CakePHP community! I have a doubt about routing and accesing models
while
routing. The thing is I have two models:
Hi. I am kinda new to PHP and very new to Cake and OOP. I want to
develop a simple interface to track investments in a company. The app
would support a number of investors. I want the app to have a profile
page for each investor that displays their info such as name, start
date, initial investment
File is not found root directory check link and file status
Alok Mishra
A1 Technology Chandigarh
On Fri, Jul 16, 2010 at 3:56 AM, xamako xam...@gmail.com wrote:
Good night
I am testing a website developed with cakephp, and seems to me a 404
error.
I have found that the mod_rewrite module
Hello, newbie here. I cannot get setFlash() to display a message on
my view page.
In the controller:
$this-Session-setFlash('Please enter the correct number.',
'register', array('class' = 'error-message'));
In the view page register.ctp:
?php if ($session-check('Message.flash')) {
Hello Tomfox,
is possible in two ways:
1 - by jquery http://api.jquery.com/child-selector/
eg.: $('.loginfield :text').addClass('');
or
2 - by css
eg.: .loginfield input[type=text]{xx:z}
bye,
Hilton
Check out the new CakePHP Questions site http://cakeqs.org and help others with
SecurityComponent is good for protecting against CSRF attacks, but
when I encounter a black hole while debugging an app, I want to know
why. When SecurityComponent black holes a request, it's only capable
of telling you one thing: you sent a bad request. That's good for
production--you want
On Fri, Jul 16, 2010 at 7:35 AM, Warren wcolb...@gmail.com wrote:
I'm trying to delete images when deleting the container of those
images with a cascading model::delete
The cascading works fine, but I can't get the model call back
afterDelete to work properly so I can delete the actual image
On Fri, Jul 16, 2010 at 9:37 AM, RhythmicDevil rhythmicde...@gmail.com wrote:
Thanks for the reply.
The number of channels is variable but always more than a 100.
I would prefer not to cache in the client as I would still have to
serve up an entire days worth of the schedule for every user.
Ok I get you, that makes more sense. I will look into implementing
that.
On Jul 16, 9:56 am, cricket zijn.digi...@gmail.com wrote:
On Fri, Jul 16, 2010 at 9:37 AM, RhythmicDevil rhythmicde...@gmail.com
wrote:
Thanks for the reply.
The number of channels is variable but always more than a
I've solved
I changed EasyPHP by Xampp, and now everything works fine.
Thanks
On Jul 16, 12:33 am, Alok Mishra aloksoft2...@gmail.com wrote:
File is not found root directory check link and file status
Alok Mishra
A1 Technology Chandigarh
On Fri, Jul 16, 2010 at 3:56 AM, xamako
On Fri, Jul 16, 2010 at 9:30 AM, jdbartlett cont...@jdbartlett.com wrote:
SecurityComponent is good for protecting against CSRF attacks, but
when I encounter a black hole while debugging an app, I want to know
why. When SecurityComponent black holes a request, it's only capable
of telling you
On Fri, Jul 16, 2010 at 9:59 AM, RhythmicDevil rhythmicde...@gmail.com wrote:
Ok I get you, that makes more sense. I will look into implementing
that.
The more I think about it, the more I want to try it. I might take a
swing at it this weekend. I'll let you know if I do and can get it to
work.
I have a database table that contains child records of another table
and want users to be able to change those child records. The form
helper is doing something strange. I have it loop through my fields
which are varchar, and for some reason one field is creating a select
drop down, all others an
Thank you.
On Jul 16, 10:02 am, cricket zijn.digi...@gmail.com wrote:
On Fri, Jul 16, 2010 at 9:59 AM, RhythmicDevil rhythmicde...@gmail.com
wrote:
Ok I get you, that makes more sense. I will look into implementing
that.
The more I think about it, the more I want to try it. I might take
@Jeremy: Normally these Fields would be the same. But the Product
table is changing every day. And if a product is gone, I need the
Information the favs table (That a user added a pruduct to his favs,
which isn't there anymore), so I can't just join these two tables.
@Master Ram: Thanks for your
Which version of Cake are you using?
There's no need to check for the presence of a message; -flash() takes care of
that for you.
On 1.3:
echo $this-Session-flash();
On 1.2:
$this-Session-flash();
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 16 Jul
The form helper will automatically create a drop down is there is a variable
that is a plural of a field name without it's '_id' at the end.
For example, if you set a variable called $towns in your controller populated
by $this-Town-find('list'); and then have a form input called town_id, Cake
Got it. Can I make a suggestion? This suggests poor data integrity as child
records (favs) can exist after the parent record (products) have been deleted.
Would it not be better to mark a product as 'deleted' rather than actually
deleting it?
Jeremy Burns
Class Outfit
I am using 1.3. Your suggestion worked. Thanks!
From the perspective of a newbie, the CakePHP 1.3 manual needs better
documentation on the setFlash() method. They need an example of how
to implement it that actually works.
On Jul 16, 10:25 am, Jeremy Burns | Class Outfit
It is inside AccessHelper.
AccessHelper: http://gist.github.com/478497
On Jul 16, 4:45 pm, cricket zijn.digi...@gmail.com wrote:
On Fri, Jul 16, 2010 at 7:18 AM, Ragnis ragnis.ar...@gmail.com wrote:
After I moved from a shared hosting to a VPS cake 1.3.2 does not load
custom helpers.
All
yeah, it's so stupidly easy to do it in MySQL, it's a shame that I
have to write any code at all in beforeSave() to accomplish the same
thing.
RAPID DEVELOPMENT, they say.
Maybe the model could have a no-mess-field-list, or fields that will
be left alone when saving or updating.
On 15 jul,
hmmm don´t understand it well, because:
if i set this prefixes in core why i will using then the index() method
and the clients_index?
Also for auth i set it in the app controller and it ask me every time to
login regardless of whether i´m in the admin section or the frontend where i
only want
Hi
Some of you might feel bugged when trying to access an TINYINT(1)
field in mysql with values different from 0 or 1.
It happens that CakePHP thinks TINYINT(1) is BOOLEAN. Therefore, 0 is
0/False and anything else but zero is 1/TRUE.
If it ever happens to you, you have two options.
First,
http://www.jamesfairhurst.co.uk/posts/view/creating_an_admin_section_with_cakephp_updated
2010/7/16 Davor Ilic webfa...@gmail.com
hmmm don´t understand it well, because:
if i set this prefixes in core why i will using then the index() method
and the clients_index?
Also for auth i set it in
don´t need this i already have an backend but need an frontend now with the
same controllers
2010/7/16 Hugo M ham1...@gmail.com
http://www.jamesfairhurst.co.uk/posts/view/creating_an_admin_section_with_cakephp_updated
2010/7/16 Davor Ilic webfa...@gmail.com
hmmm don´t understand it well,
I am sorry I misunderstood your question.
It sounds as if you your having an issue with the auth comp but you have not
posted your code
are you being redirected to login for all controllers/actions?
- S
On 16 July 2010 17:50, Davor Ilic webfa...@gmail.com wrote:
don´t need this i already
yes thats right. i tell app_controller to use the component auth but don´t
know how to tell app_controller to use for auth the admin_method and for
frontend this method in my case admin_index() and index()
2010/7/16 Sam Sherlock sam.sherl...@gmail.com
I am sorry I misunderstood your question.
Hi all,
I followed this http://book.cakephp.org/view/1239/The-Simple-Setup to
do REST webservices
but I am not getting the respond type as text/xml . it returns as text/
html.
I placed the below into my controller but it does not work.
$this-RequestHandler-respondAs('xml');
i forgot used this routes:
Router::connect('/admin', array('controller' =
'users','action'='login','admin'=true));
Router::connect('/admin/:controller/:action/*', array('admin' = true));
Router::connect('/', array('controller' = 'contents', 'action' = 'index',
'admin'=false));
2010/7/16 Davor
2010/7/16 Davor Ilic webfa...@gmail.com
i forgot used this routes:
Router::connect('/admin', array('controller' =
'users','action'='login','admin'=true));
Router::connect('/admin/:controller/:action/*', array('admin' = true));
Router::connect('/', array('controller' = 'contents', 'action'
should i poll it with params['admin'] in app_controller to use component
auth or not? or is there another way or did i missunderstood something with
Authcomponent?
2010/7/16 Davor Ilic webfa...@gmail.com
2010/7/16 Davor Ilic webfa...@gmail.com
i forgot used this routes:
[code]
function __getAdminMode() {
$adminRoute = Configure::read('Routing.prefixes.0');
if (isset($this-params['prefix']) $this-params['prefix'] ==
$adminRoute) {
return true;
}
return false;
are those black holes 404s? or what error code is thrown?
On 16 Jul., 16:00, cricket zijn.digi...@gmail.com wrote:
On Fri, Jul 16, 2010 at 9:30 AM, jdbartlett cont...@jdbartlett.com wrote:
SecurityComponent is good for protecting against CSRF attacks, but
when I encounter a black hole while
HI,
I'm using cake_1.2.3.8166 version. I get this error:
Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources
\dbo_source.php, line 525]
can u show us your query statement please?...maybe you fail at query
statement
--
LP,
Tilen Majerle http://majerle.eu
2010/7/16 simon...@terra.com.br simon...@terra.com.br
HI,
I'm using cake_1.2.3.8166 version. I get this error:
Warning (512): SQL Error: 1064: You have an error in your
Exactly what Jeremy said. I actually ran into this problem yesterday,
I resolved it by just putting type = text.
Sometimes I love Cakes automagic-ness, sometimes it can be quite
annoying.
On Jul 16, 7:34 am, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
The form helper will
Ok,
I make a repo to github. I named it Aktive Merchant ;)
The link is http://github.com/akDeveloper/Aktive-Merchant
Will add soon some wiki notes for development new gateways.
Please give your feedback.
Thanks
On Jul 16, 7:20 am, iamcam (Cameron Perry) mistercame...@gmail.com
wrote:
This
Unless you specify a callback action, SecurityComponent's black holes
are always HTTP 404 responses with no body content. Currently,
SecurityComponent is designed not to give any information about why
it's black holing a response.
On Jul 16, 1:24 pm, euromark dereurom...@googlemail.com wrote:
i´ve try it and it doesn´t work. it make know the methods with admin_
prefix access without login i try it like this:
function beforeFilter() {
parent::beforeFilter();
if($this-__getAdminMode()) {
Hi,
In my application, after sometime of inactivity, the authentication is
expired and then the areas that it requires authentication redirects
the user to the login page. This is nice.
However, I have some kind of third party file browser and I use
CakePHP session to handle the authentication
I've been thinking about this a little more and agree that this should
probably be a separate plugin rather than a patch for the current
SecurityComponent.
The more I think about it, tokenizing basically serves to prevent
record hijacking (overtyping a primary or foreign key or other hidden
field
Hi
In order to not have to duplicate my add and edit forms I have
attempted to route all the admin_add actions to admin_edit, my
admin_edit method is define to just load a blank form if no ID is
supplied in the URL and this worked fine in CakePHP 1.2. I have
however just upgraded to 1.3 for
I have Post model in which I've defined validation rules:
var $validate = array(
'range' = array(
'rule' = array('range', 1900, 2010),
'message' = 'Between 1900 and 2010.'
)
);
and I've the PostsController, with an easy add function:
function add() {
if
Not sure if this applies but I had an existing DB that has:
id | name | parent_id
I added the two other fields (lft and rght) but how to I get these
populated with the correct values so 'generatetreelist' will work
correctly?
Thanks.
On Jul 16, 8:37 am, Kirk k...@kirkkahn.com wrote:
Why are
i also tried this
function beforeFilter() {
parent::beforeFilter();
$this-Auth-allow('index');
}
but nothing
2010/7/17 Davor Ilic webfa...@gmail.com:
i´ve try it and it doesn´t work. it make know the methods with
do i have to use two i have to work with two diffrent controllers one
for my backendsection and one for my frontendsection?
i this the solution
2010/7/17 Davor Ilic webfa...@gmail.com:
i also tried this
function beforeFilter() {
parent::beforeFilter();
m found the solution about my issue:
false
Router::connect('/', array('controller' = 'clients', 'action' =
'index', 'admin'=false));
right
Router::connect('/', array('controller' = 'clients', 'action' =
'index'));
the admin false turns on to
Max, I think you're looking for http://book.cakephp.org/view/1628/Recover
http://book.cakephp.org/view/1628/RecoverAlso, I just noticed that
reorder() is in 2 different places in the documentation, and the 2nd place
already has the complete documentation. Now I can't remember if I passed the
id
Hi all.
I've searched through the internet for a survey plugin for CakePHP,
but couldn't find a simple and modular one as a plugin has to be. So I
started developing one, and as I thought that someone else may find
this useful, I'm sending this email.
I'm releasing the code in
82 matches
Mail list logo