Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Is this path.php file being included into another file? Notices are generally human error. One hack would be to check that it's not already defined before trying to define it again, but yeah, you really should know wether or not you have already defined something.
  2. There is already a "recommended hosts" thread in this very board.
  3. Somewhere in your code you are defining the constant "root" twice. What is on line 3 of path.php ?
  4. You *are* defining the same constant twice.
  5. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=348680.0
  6. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=348693.0
  7. I use it in production and hate every bit of it. Our application is however so large that we are presently stuck with smarty because of the time it would take to remove it. I see no benefit to any template engines. They add nothing but overhead and another layer that simply doesn't need to be there.
  8. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=348601.0
  9. How should we know? fetch_all() is not a built in php function.
  10. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=348687.0
  11. I think your missing the point of a "help" forum.
  12. You have extra commas after some of your properties. required: true, For example.
  13. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=348665.0
  14. You should always use spaces instead of tabs as they display the same everywhere, tabs can f**k up your formatting depending on the editor/system used.
  15. Have you tried searching for a tutorial on the subject? There would be literally hundreds of them around.
  16. Do not use globals with classes. It completely breaks the encapsulation that they provide, you may as well not use classes at all. Search for some tutorials on "PHP Dependency Injection" to get some ideas on how it should be done. A very simple form of dependency injection is to simply have one object accept the other object through an argument in its __construct. eg; class a {} class b { private $a; public function __construct(a $a) { $this->a = $a; } } $b = new b(new a);
  17. Views don't generally access methods from within a controller. Controllers are designed to handle requests, much like what you have attempted. Having said that, I'm sure CodeIgnitor would have it's own methods for redirecting. Iv'e not used CodeIgnitor, I suggest you search the docs for details on a Response object.
  18. Clients cannot view the contents of php files unless your server becomes misconfigured and starts spitting out php as raw text. The rest of your question is far too vague to answer and depends entirely on how the client gains access.
  19. Your question is pretty unclear. Do you wan't this controller to redirect to products/search/searchCat/searchString ? or you want the form to post to products/search/searchCat/searchString ?
  20. I generally have a 'production' branch which my production servers track.
  21. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=348417.0
  22. If you want someone to fix code for you, hire a programmer. If you want help with a coding issue, ask a specific question.
  23. Sorry, but your question makes little sense.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.