Hi, people
i'm using apache2.2 + php5.2 and cake_1.2.3.8166. When i try to acess
localhost/cake_1.2.3.8166, folders and archives which are inside of
the cake appear, and index,php is not shown. However, If a click on
index.php, this page is shown correctly. Why isn't index.php called
automaticall
I had got your things.
Yes, I know that its bad practice.
But I am working one kind of application. In which later stage, we will need
to find way by
which we can enter new functionality in the system easliy. We don't need to
touch controller files. We want that if i want to add new functionality
startup(), initialize() and any callbacks, are NOT triggered when
using App::import(). App import simply requires() the file.
On Jul 31, 1:44 pm, "euromark (munich)"
wrote:
> actually there might be some occasions where you would need to do that
> - and where you could even call it appropriate
>
I have an ajax link that will toggle if the user is confirmed or not without
reloading the page.
link($user['User']['confirmed'], array('controller' => 'users',
'action' => 'confirm/'.$user['User']['id']), array(), 'Update Confirmation
for " '.$user['User']['username'].' "'
actually there might be some occasions where you would need to do that
- and where you could even call it appropriate
but with core components, this is usually NEVER the case
if you have a component that is totally isolated and does not need any
startup() or controller related stuff, this works
You are still not understanding what im saying. Either way, its bad
practice to put component code in helpers, if you are then it means
your doing it wrong.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gr
As euromark said, you shoudn't bother, because cakephp doesn't rule foreach
conditions. It's interesting to maintain the plural/singular in foreach just
to maintain your code cleaner, but in cases like (software, people, etc),
don't bother. You'll be able to set any name you want to fetch the resul
For example
There are 3 tables "categories", "products" and "sizes", and I'm
working on product page (product.php, products_controller.php,
product.ctp).
The database looks like this.
sizes:
---
|id |
---
| category_id |
| size_name
Thank you, Miles for your comment.
sometimes I'm confused which one I should use.
I thought I should use form helper instead of html helper.
Also your example is mixed with 'checkbox', I want to use radio botton
not checkbox.
I tried your code just in case but I got an error.
thanks,
"Even if this works it will bring a whole lot of other problems. I
don't know what benefit you expect from the chosen url setup, but you
might want to reconsider. "
well, all I wanted to do was to base my choice of controller on the
subdomain.
But I think I'll just make an if-statement out of it.
Hi all.
I'm having problems with sort function. I have two models Task and Employee,
they are related by Employee.nickname.
Sort function works well on main model's fields, but it doesn't work with
its associated field. I've also tried $paginator->sort('Employee',
'Employee.nickname')
Is the
how is wikipedia a source? did wikipedia do any research? any
statistics gained from wikipedia were cited from some other source.
the source is the original cited study/article/whatever.
wikipedia is great for general infomation but i can tell you that i
personally see innaccuracies, biases, and o
I am trying to integrate pdf generation in my application using the
bakery article:
http://bakery.cakephp.org/articles/view/creating-pdf-files-with-cakephp-and-tcpdf
I am trying to create a pdf, then save it to disk, without ever
outputting it to the screen.
[code]$tcpdf->Output('filename.pdf'
well if you are sending 1 milllion emails a month, it will cost you
$5000. we are willing to do some extra work to at least try and do it
ourselves.
domain keys are pretty easy to set up as long as you send with SMTP
and the same thing goes with SPF records. Unsubscribe functions can be
as simple
Ive got a small problem with my cakephp app...
I have in my design a habtm as a central table wich several other
table relates to.
This due to that Users can be members of different organisations over
time
news belongsTo organisations_user
organisations_user hasOne user, organisation
user hasAnd
There is no one who can help me ? ? ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake
You can use plugins to pack some features.
I use plugins to distribute jQuery's plugins composed by js files and
css plus images...
I miss a CakePHP structure to distribute external scripts or
functionality packages...
I hope in the next release this thing will be patched up!
On Jul 30, 9:33 pm
Hello,
I have a project in which we have so far 3 user roles - superadmin,
admin and user. (Super)Admins can log into the admin panel. But now
the client needs a 4th role - translator.
Translator will be able to:
* log into the admin panel
* view all values in admin panel
* modify values in admi
You don't want to save the post to the DB with the newlines as breaks?
Then just convert it when you echo it in the view.
Also, you can use PHP's nl2br() function instead of str_replace().
On Fri, Jul 31, 2009 at 9:56 AM, in2lag wrote:
>
> well, this is not the exactly same way, which i want...
Hi,
I am just struggling on the same issue I think. I have a HABTM which
works fine, additional I now have a hasMany to be saved, which is no
problem if it is only a single input field. But I am actually trying
to add another.
Here is my Array:
[Recipe] => Array
(
[recipe_na
$this->Comment->find(
'first',
array(
'conditions' => array(
'Comment.id' => 121
),
'fields' => array(
'Comment.text',
'Comment.user_id'
),
I have problem with Auth Component...
In my localhost works perfect, but on web server Auth->user() doesn't
work, it's empty.
Mayby somebody has the same problem, and solutions. I don't know what
can i do yet...
--~--~-~--~~~---~--~~
You received this message becau
well, this is not the exactly same way, which i want... because in
your solution, i update data in db too... but thanks
On 31 čnc, 14:11, Rick wrote:
> You could put this in your controller (edit and add) just after you
> get the data back from the form or you can put the code in your model
On 30 jul, 13:07, "Dr. Loboto" wrote:
> Post your controller code. afterFind will be called as much times as
> much you call find.
function view($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid Type.', true));
$this->redirect(array('action'=>'index')
Hi, I've been researching a bit with the same pupose but teknoid in
the IRC channel tipped me that unless I was building a complete mass
mailing solution and all the "stuff" that comes with it, it would be
better to hire an existing service.
Then I said what would "stuff" be and here is his respo
Thanks ,I did it ,But with basic PHP :(
I'd probably switch to cakePHP mail component soon , as I'm novice in
cakePHP ,that will take a couple of weeks.
Regards
Abraham
On Jul 31, 7:37 am, Walther wrote:
> http://book.cakephp.org/view/176/Email
>
> And if that still doesn't help you then you sh
You could put this in your controller (edit and add) just after you
get the data back from the form or you can put the code in your model
in a before_save method.
Rick
On Jul 31, 6:16 am, in2lag wrote:
> Hi, i have problem in my application with new lines in posts. CakePHP
> probably replace "b
On 12 jul, 00:52, Jorgepedret wrote:
> I found the solution for this problem... [solution elided]
Thank you! it really does fix it!
You are so very welcome!
I had to clear the app/tmp/cache directory to make the changes show,
I'll add.
--
Saludos
Adriano
--~--~-~--~~~--
Hi guys.
Sometimes, to made the joins using only one query, I've used the "joins"
inside find method, but I saw Mark's article using bindModel and
unbindModel. Now my question is: What's the difference using bind or
unbindModel, instead the "joins" array inside the find method ?!
Regards.
Thiag
I use this for router
Router::connect('/:language/:controller/:action/*',array(),array
('language'=>'[a-z]{3}'));
and when I click on this link
$html->link('Greek',array('language'=>'gre'));
The returned URL is
http://www.mydomain.ext/controller/action
instead of
http://www.mydomain.ext/gr
Hi Miles,
I have used
App::import('Component', 'CookieComponent');
$Cookie = new CookieComponent();
its working fine.
I didn't require below the code in controller
function beforeFilter() {
$this->Cookie->name = 'COOKIE';
}
In my case its working fine.
Thanks for every thing.
Shadab
On Fri, J
As for the coding, just use the form helper's automagic radio input:
eg
input('fieldname',array('type'=>'radio','options'=>
$optarray)); ?>
$optarray is the array of options, eg. array
('0'=>'No','1'=>'Yes','2'=>'No info') for the example you give.
On Jul 31, 8:29 pm, delocalizer wrote:
> The ot
The other way you can approach clearing radio input groups is to add
some little button or widget next to each group with a javascript
onClick function that sets the values to empty. At least that's what I
do. It looks prettier & and a bit more logical than an extra radio
option.
cheers,
Conrad.
Hi, i have problem in my application with new lines in posts. CakePHP
probably replace "bad" characters from db results and i need to
str_replace('\n','',$somePost['Post']['text']) to keep new lines
in posts, Can somebody help me with this problem? I tried to search
google and this group, but with
Say you are using the Cookie component, and place this in your
beforeFilter().
function beforeFilter() {
$this->Cookie->name = 'COOKIE';
}
If you import the component like so, the above setting WILL NOT be
applied to the imported cookie component, so you will get mixed
results.
App::import('Com
Hi Miles,
Thanks for your reply.
Can you please explain " config ($this->Component->foo = 'bar') " in more
details?
What is purpose of it? Why we will need to set it in before filter()
It's really appreciated if you can give us one simple example.
Thanks!
Shadab
On Thu, Jul 30, 2009 at 1:50 AM,
On Jul 31, 9:58 am, AD7six wrote:
> On Jul 31, 12:15 am, Roel wrote:
>
> > 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) beha
On Jul 31, 12:15 am, Roel wrote:
> 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 data
You use it like you would use jquery normally. Very easy.
On Jul 30, 10:38 am, jeremy wrote:
> 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
http://book.cakephp.org/view/176/Email
And if that still doesn't help you then you should go to the basics
and re-read the ENTIRE cakeBook.
On Jul 30, 7:27 pm, Abraham Boray wrote:
> 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 w
40 matches
Mail list logo