You sure you want an explicit third option 'no information on the
subject'? Wouldn't it be better to just have a radio group with 2
buttons (Yes/No or True/False) with a default value of NULL for that
field in your database? Or if you really want to have a third option
to force a user to enter
Hello all :)
I'm creating my application and I have a litle problem with
AppController.
I have create on /app/ folder a file named app_controller.php
inside this file I have write this code :
?php
class AppController extends Controller
{
var $helpers = array('Html');
Ok ! ! !
What I do is to call from the controller beforeFilter action the
AppController::beforeFilter();
But I don't know if that is ok or If I have to do something
else ! ! ! ? ? ?
Thanks a lot :)
On 30 Ιούλ, 11:05, DatacenterHellas merianosni...@gmail.com wrote:
Hello all :)
I'm creating
Okay. Understood. Thanks!
It works like all of you suggested to put all files in one directory
under webroot (e.g. webroot/js/syntaxhighlighter/) and then use
$html-css('../js/syntaxhighlighter/styles/shCore', null, null,
false);
$javascript-link('syntaxhighlighter/scripts/shCore', false);
I
It may be free, but not open :P
Tried to copy text to google translate, but it seems to be protected ;
(
So it's no use for lots of people right now. You probably should have
post info about it on Malaysian cakePhp forum instead of teasing with
us :P
On Jul 29, 1:27 pm, Azril Nazli
Why using vendor when cake (1.2) have native email component?
On Jul 30, 7:05 am, JamesF usaexportexpe...@gmail.com wrote:
that's a good start, i am still trying to get a picture of how it will
work together. thanks
On Jul 29, 11:46 pm, brian bally.z...@gmail.com wrote:
On Wed, Jul 29,
hi,
have you declared an beforeFilter() function in your active controller?
try to call parent::beforeFilter(); in that function.
i hope the pr($this); call is for test purposes only ;) because you dont
print anything in your controllers/models
greets
Andreas
DatacenterHellas schrieb:
Ok ! !
i dont think a lot of people are able to read that - or know the
language at all
i wonder... why not using ENGLISH in the first place?
I can only assume you made this comment to raise some hackles. While
we're at it why don't we just abolish German (I assume that's your
first language)?
hi,
well, in comparison to english, its still to less people who understand
that language ;)
most open source stuff is written in english, to make it available to all.
anyway, thanks for that effort, i'd like to read that ebook, but
unfortunately i don't understand malay ;) i would appreciate
Thanks a lot for your reply, JamesF. :-D
I had written this in my routes.php:
Router::connect('/countries/france/list', array('controller' =
'france', 'action' = 'list'));
Insted of:
Router::connect('/countries/france/list/*', array('controller' =
'france', 'action' = 'list'));
Regards.
What I done is
AppController::beforeFilter();
Is that incorect ? ? ?
What is the deference of the parent::beforeFilter();
The pr($this) is only for test :)
Kind regards
Merianos Nikos
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hey,
there is so much functionality in cakePHP, but how would I go about
adding an asterisk (as text) to all required fields? It's seldom you
have a form without a required field, so I'm presuming it's possible
without hacking into the helper.php. Unfortunately I can't see where.
Thanks,
Taff
I follow this web page:
http://www.webdevelopment2.com/cakephp-bake-baking-models-controllers-views-cakephp-12/
go into your cakephp root folder and type
cake bake mynewapp
On Jul 29, 2:17 pm, David d...@kabaddle.com wrote:
Hello,
Just a simple question about how you initially bake your
Thanks for the reply, that makes sense.
I actually ended up going with a more robust image upload component
that has sorted the validation issues.
On Jul 28, 11:57 am, delocalizer conrad.leon...@hotmail.com wrote:
Are you setting your data to the model in the controller action before
in my opinion you have to...
thats because the logic of your validation rule does not always match
the result cake puts in the form fields in the view (adding class
required)
you can check that out by adding a style to required like
background-color: red
its pretty messed up
some fields are not
totally agree with andreas
posting stuff in your mother tongue in an english forum is just not
appropriate
how would you feel if everybody starts to use his mother tongue
this would be a multiculti whatever group without anybody beeing able
to read anything else
so no - write in english or post
In addition to what James suggested, you should modify the Comment class:
class Comment extends AppModel {
var $name = 'Comment';
var $belongsTo = array('User');
}
And give the comments table a user_id column (to match the type of users.id).
On Thu, Jul 30, 2009 at 1:02 AM,
For the record: I'm gr8tful for every publication about cake
tipstricks. In most cases 90% of it I.m familiar with, but I like to
read it because of this 10% that will be new, suprising, fresh and
useful. So there's lots of stufff in english doesn't convince me - I
just want to read this one too,
Yannis,
I think you are using the translate behavior.
Try this everytime user changes language:
if (!class_exists('L10n')) {
App::import('Core', 'L10n');
}
$l10n = new L10n();
$l10n-get($lang);
On Jul 29, 8:37 am, Yannis ikasso...@gmail.com wrote:
I can see from the debug output
On Thu, Jul 30, 2009 at 1:35 AM, JamesFusaexportexpe...@gmail.com wrote:
i would be interested in seeing the gains for this too. only problem
is you need access to http.conf which might destroy the portability of
your app if you plan to distribute it. still if you are talking about
a server
On Thu, Jul 30, 2009 at 4:36 AM, Grzegorz
Pawlikgrzegorzpaw...@gmail.com wrote:
Why using vendor when cake (1.2) have native email component?
Unlike Cake's EmailComponent, the SwiftMailer package includes a
couple of plugins, AntiFlood Throttler, that are meant for use in
situations where
You call it as parent::beforeFilter(), not
AppController::beforeFilter(). parent is a keyword that refers to the
class that some other class extends.
And use parent::beforeFilter() only if the your controller also has a
beforeFilter() method. If it does not, AppController's beforeFilter()
will
I have a basic application created. I have a list of categories, a
list of items that can be part of only one category, and a list of
these items. Currently the application requires that you create the
list, and then you would add each item to the list through a separate
interface. (at least
On Jul 30, 2:35 pm, brian bally.z...@gmail.com wrote:
On Thu, Jul 30, 2009 at 1:35 AM, JamesFusaexportexpe...@gmail.com wrote:
i would be interested in seeing the gains for this too. only problem
is you need access to http.conf which might destroy the portability of
your app if you plan
Hey Guys
I have a Contact form Like this :
form action=comments/UserMailToME method=post
name=ContactMeBoard id=ContactMeBoard label
for=textfieldname/label
input type=text name=textfield id=textfield /
label for=textfield2e-mail/label
input type=text
Hi
I have a HABTM Relationship and was using CounterCache, following the
below script:
http://bakery.cakephp.org/articles/view/counter-cache-behavior-for-habtm-relations
It worked well, till I decided that a user should be able to choose
more than 1 Category. Since than the CounterCache is
You're right. Looks like a very useful repository. Thank you!
On Jul 29, 5:26 pm, Miles J mileswjohn...@gmail.com wrote:
http://thechaw.com/projects
Didnt look hard enough eh?
On Jul 29, 2:33 pm, Mateo elchapolincolor...@gmail.com wrote:
I've looked considerably trying to find a
Have a look at this
http://bakery.cakephp.org/articles/view/brief-overview-of-the-new-emailcomponent
http://www.google.com/search?q=cakephp+email
On Thu, Jul 30, 2009 at 10:43 AM, Abraham Borayabrahambo...@gmail.com wrote:
Hey Guys
I have a Contact form Like this :
form
Hi!
I've got an array with this structure:
Array
(
[...]
[37] = VideoLAN
[38] = VideoLAN\Quick Settings
[39] = VideoLAN\Quick Settings\Audio
[40] = VideoLAN\Quick Settings\Interface
[41] = VideoLAN\Quick Settings\Video
[...]
)
Now i need it to be grouped together like this:
i just use jquery's .load and and other ajax functions
all i do is include jquery in my layout. i personally don't use the
ajax helper. it comes down to rendering your ajax data views without
a layout, using jquery to load the results.
ex. i need to get a list of users. in my view i call
seconded
On Jul 30, 8:16 am, brian bally.z...@gmail.com wrote:
In addition to what James suggested, you should modify the Comment class:
class Comment extends AppModel {
var $name = 'Comment';
var $belongsTo = array('User');
}
And give the comments table a user_id column (to
i would love to use cakes native email component and whip something up
from the shell but it might be like treading water to get it to work
for 5000 emails a day.
On Jul 30, 8:46 am, brian bally.z...@gmail.com wrote:
On Thu, Jul 30, 2009 at 4:36 AM, Grzegorz
Pawlikgrzegorzpaw...@gmail.com
Hi,
I'd like to notify about a little bug in error reporting. CakePHP
reports that theres a Missing Database Table when actually theres
Missing Database Connection.
To reproduce this create some fake database config and attempt to use
some model using that fake config. I tried it on latest 1.2
Hi,
For a project I'm implementing its CakePHP ACL-component. I'm making
use of the CRUD-authorization. I want to be able to specify rights
on a record specific level, but I have a feeling the core component
doesn't support this.
Therefore I've altered the file /cake/libs/controller/components/
hai guys,
am looking for using jquery with cakephp...
i googled a lot but didnt get appropriate tutorials for this
can anyone send me links or tutorials of perfroming both the client
side and server side
validations in cakephp using jquery..
THANZ IN ADVANCE
you could set up an apache alias to your app/vendors directory at
mysite.com/vendors
and link to css like this
echo $html-css('/vendors/mystyle.css', NULL, NULL, false);
same would work for javascript
On Jul 30, 4:24 am, Christian christian.lusz...@gmail.com wrote:
Okay. Understood. Thanks!
or ../../vendors/
not sure myself but the point is you could do it this way
On Jul 30, 11:25 am, JamesF usaexportexpe...@gmail.com wrote:
you could set up an apache alias to your app/vendors directory at
mysite.com/vendors
and link to css like this
echo $html-css('/vendors/mystyle.css',
doh!
On Jul 30, 4:52 am, jordicakephp jordicake...@gmail.com wrote:
Thanks a lot for your reply, JamesF. :-D
I had written this in my routes.php:
Router::connect('/countries/france/list', array('controller' =
'france', 'action' = 'list'));
Insted of:
Before posting a ticket let me know your opinion.
Here is a test case about the problem.
http://bin.cakephp.org/view/622164608
Cake is doing two things bad, but maybe this is the workform.
1) When binded to a hasMany, it adds the id (or primary key) field to
the query instead of just doing
Hi,
I just found the solution myself I think, I added
foreach ($this-foreignTableIDs[$assocData['className']] as $id)
into the updateCounters method and it now updates for every category.
Maybe this comes handy for someone.
It seem to work and I get no error message anymore.
for anyone following this topic...i found a post with a bit more
information:
http://forums.devnetwork.net/viewtopic.php?f=52t=68497
basically discussed send bulk emails with swiftmailer via CRON
On Jul 30, 11:23 am, JamesF usaexportexpe...@gmail.com wrote:
i would love to use cakes native
Hi,
This has been nagging at the back of my head for a long time. I feel
like I should be using schema migrations. Especially for one
constantly evolving app I work on. But I have not found any way that
handles non English text without my interfering with the schema
details directly (in MySQL in
Post your controller code. afterFind will be called as much times as
much you call find.
On Jul 29, 9:38 pm, iFeghali igor.fegh...@gmail.com wrote:
anyone ?
On 28 jul, 17:31, iFeghali igor.fegh...@gmail.com wrote:
Hello All,
I found myself stuck for a week in an issue that I would
Error before redirect causes blank page. Turn debug on and look at
this error.
On Jul 29, 10:29 pm, Eddy Josafat eddyjosa...@gmail.com wrote:
I have same problem and I don't use any translation.
$this-Session-setFlash('Contraseña modificada', 'notificación');
Hi Guys,
Does any know if there is an graph of process flow of how Cake loads
itself? This would be really helpful.
Thanks.
G
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
Hi, im building an application to collect pieces of software. the problem is
that software dont have a plural form.
i dont know what to do, i know i can create an inflector but... i dont know
how to call the array for the foreachs, i mean
foreach ($software(plural) as $software(singular)
i know
If you want to render non-default view for an action just call $this-
render('my_view_name') in controller explicitly. This way you can
have more views then actions.
On Jul 5, 8:45 pm, Reinder reindervis...@gmail.com wrote:
Thanks for your response, however I don't think this solves the acl
Hi,
I'm using CakePHP for quite some time now and I really love it, but I
hadn't come around to make use of the complex association
possibilities for models. So I started to play around with them for a
personal project I just started. Although the advantages Cake offers
are numerous, I stumbled
I have a named argument in my URLs, so it could look like this:
/subdomain:www/home
/subdomain:forum/topic/23
etc..
now I want that some of those named-arguments go to certain
controllers and all the others go the pages-controller
but I am a complete noob when it comes to routing. I tried
WooHoo!!!
After struggling with this for nearly 2 weeks I've managed to get it
working. Oh boy! The pain I've been through trying to sort this out;
but I'm so chuffed I got it sorted without anyone responding to the
(several) postings I've made on this topic. I'll try to put a blog
posting
have you tried using Containable behavior?
On Jul 30, 12:16 pm, Roel roel@gmail.com wrote:
Hi,
I'm using CakePHP for quite some time now and I really love it, but I
hadn't come around to make use of the complex association
possibilities for models. So I started to play around with them
yes, that Apache alias should work,
but I wanted to modify in cakephp only. Maybe for the next project I
can use this.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group,
use the .htaccess in your webroot to create the alias then
On Jul 30, 1:16 pm, Christian christian.lusz...@gmail.com wrote:
yes, that Apache alias should work,
but I wanted to modify in cakephp only. Maybe for the next project I
can use this.
Thanks!
foreach ($software as $sware) {}
would work as well as just
foreach ($software as $s) {}
etc
be creative :)
the scope of this var is so small that you should not bother too much
here
On 30 Jul., 17:34, Manolet Gmail mano...@gmail.com wrote:
Hi, im building an application to collect pieces of
(source: Wikipedia)
not a source
On Jul 30, 4:43 am, leop ponton@gmail.com wrote:
i dont think a lot of people are able to read that - or know the
language at all
i wonder... why not using ENGLISH in the first place?
I can only assume you made this comment to raise some hackles.
If I use form helper to create radio button, how can I set CHECKED?
For example, if I do like this, where I can set CHECKED if I want
to?
$radio_btn = array(1=Yes, 0=No);
echo $form-radio(Test.test, $radio_btn );
Well that doesn't help me out , i'm new in CakePHP .
And I'd like to see a very very simple example to start with =)
I searched the web ,but without getting the point HOW TO SEND MAIL
WITH CAKEPHP'
Hope u undestand me guys
Regards
Abraham
On Jul 30, 3:10 pm, brian bally.z...@gmail.com wrote:
That's about as easy as you're going to get. The Email Component is
pretty straightforward. If you're looking for a really easy way to
send simple emails, just use the PHP mail() function.
http://www.php.net/manual/en/function.mail.php
On Jul 30, 1:27 pm, Abraham Boray abrahambo...@gmail.com
I've tried Containable but it doesn't help lower the number of queries
made. In fact in some circumstances Containable creates unnecessary
queries (https://trac.cakephp.org/ticket/5864).
To be clear, I have no trouble getting my data. It's just, from a
perspective of someone who handwritten his
On Jul 30, 12:07 am, Miles J mileswjohn...@gmail.com wrote:
You cant link to css/js in vendors. You have to place it in the
webroot js/css folders.
based on what are you stating that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On Jul 30, 9:00 pm, Roel roel@gmail.com wrote:
I've tried Containable but it doesn't help lower the number of queries
made. In fact in some circumstances Containable creates unnecessary
queries (https://trac.cakephp.org/ticket/5864).
To be clear, I have no trouble getting my data. It's
Do not use $form-radio(), you should be using $form-input().
$form-input('Test.test', array('type' = 'checkbox', 'options' =
$radio_btn, 'value' = 1));
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
http://book.cakephp.org/view/21/A-Typical-CakePHP-Request
greets
Andreas
lordG schrieb:
Hi Guys,
Does any know if there is an graph of process flow of how Cake loads
itself? This would be really helpful.
Thanks.
G
--~--~-~--~~~---~--~~
You received
I would like to add an admin portion to my app.
So far I have followed the Acl example in the Cookbook most of the
way.
What I don't is how the aros work.
If I create a user, how do I (or even can I) choose whether this new
user is an admin or a regular user? Or do I have to create a second
Hi, I have some static tables in my database. they have no relationship with
any other tables. That table store read only data. How do I fetch data from
that table, without writing any custom query, from any model.?
--
View this message in context:
Hi,
This is my first post and please forgive me if this question is
already answered. I building a business directory and I encounter a
problem when searching using paginate.
This is my simplified database design
sections ( id, name)
categories_sections(category_id, section_id)
categories (id,
Ah I like your idea of encapsulating the two finds in a model method.
That seems much better than putting the logic in the controller.
Thanks.
Could you please elaborate on the Linkable (and OneQuery) behavior?
Anything with regard to optimizing database performance for related
models seems
Any one could give me clue on how to call or execute a MS SQL stored
procedure, passing parameters to it and receiving a value from it
using Output parameters?
I successfully use query() to invoke stored procedures and get result
set but I am not sure how to get the value returns via Output
Hi,
I'm not 100% sure but I think the urls you want to use aren't going to
work because of the slashes in the named argument. Now the named
argument 'subdomain' will be 'www' and 'home' will be passed as an
other variable.
Maybe you could do something like this:
url:
/subdomain/www/home
Well the link provided should offer enough information.
One thing you could do is (out of the top of my head):
Router::connect('/:group', array('controller' = 'groups', 'action' =
'view'));
Router::connect('/:group/:user', array('controller' = 'users',
'action' = 'view'));
I've created build process for one of our project and now I want to
add some tests to it, for verification of code. Command line
integration is easy, but I couldn't find out the way where build tool
will know if tests were passed or failed. Anyone doing this already?
Thanks
you still should set up a Model for your table. there are a number of
methods for working with your data, like var $uses, bindModel, etc
this should get you started:
http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly
On Jul 30, 4:22 pm, abhishekh timba...@gmail.com
Hi,
i've added var $components = array('Auth'); to my AppController.
Now i need to login on every single page, is there a way to remove the
Authentication within certain controllers?
thanks
pete
--
View this message in context:
http://www.nabble.com/Auth-Component-tp24749664p24749664.html
class SomeController extends AppController
{
function beforeFilter()
{
parent::beforeFilter();
$this-Auth-allowedActions = array('someAction',
'someOtherAction');
}
On Thu, Jul 30, 2009 at 9:10 PM,
No you should use allow().
http://book.cakephp.org/view/563/Setting-Auth-Component-Variables
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Can't you all be a little nicer towards each other? :/
Its great to have non-English tutorials around. There is not non-
English group. It would make sense to prefix your initial posting with
[lang] or [lang-LANG] - that way it won't disturb others.
I mostly disagree with euromark. One thing he
True, but only if you pass zero arguements or '*'. I'd forgotten about
that. Otherwise, it amounts to the same thing.
function allow() {
$args = func_get_args();
if (empty($args) || $args == array('*')) {
$this-allowedActions = $this-_methods;
} else {
thanks that seems to work,
no i run into another issue. on my UsersController. the login form shows up
but when i try to login i always get the message username/password
correct.
$someone['User']['password'] has the hashpassword but its still not
working.
any hints?
thanks
function login() {
hi,
i have database tables with capital letters. is it possible to use them?
whenever i try to use USER cake turns it into u_s_e_r. is there a way to
avoid that?
thanks
pete
--
View this message in context:
http://www.nabble.com/capital-letters-for-models-tp24750294p24750294.html
Sent from
in the model var $useTable = 'USER';
http://book.cakephp.org/view/436/useTable
- S
2009/7/31 pete123456 lumot...@gmail.com
hi,
i have database tables with capital letters. is it possible to use them?
whenever i try to use USER cake turns it into u_s_e_r. is there a way to
avoid that?
Hey all I just wanted to share how i got DomainKeys and SPF records to
work with CakePHP's EmailComponent.
The first prerequisite was to obviously enable SPF record and
DomainKeys from cpanel.
(actually i used /usr/local/cpanel/bin/install_domain_keys_installer
myusername (from bash shell))
you need to set the conditions for your query in the $paginate
variable.
$this-paginate = array('whatever models and conditions array')
http://book.cakephp.org/view/249/Custom-Query-Pagination
On Jul 30, 4:48 pm, cookiebaker rsujee...@gmail.com wrote:
Hi,
This is my first post and please
82 matches
Mail list logo