Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Trywialne pytanie o codeigniter i nie tylko. (class vs helpers)
KotWButach
post
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 10
Dołączył: 8.02.2012

Ostrzeżenie: (0%)
-----


Witam

mam trywialne pytanie.
W codeigniter mamy podział na
Helper Reference
i
Class Reference

Dla mnie to wszystko jeden worek ale mimo to dostały oddzielne kategorie czy ktoś z tu obecnych uchyli mi rąbka tajemnicy i powie dlaczego oni je rozdzielili czym się różnią te typy?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
abort
post
Post #2





Grupa: Zarejestrowani
Postów: 590
Pomógł: 107
Dołączył: 25.10.2011

Ostrzeżenie: (0%)
-----


1. http://codeigniter.com/user_guide/general/helpers.html:
"Unlike most other systems in CodeIgniter, Helpers are not written in an Object Oriented format. They are simple, procedural functions. Each helper function performs one specific task, with no dependence on other functions." (to jest w drugim akapicie)

2. http://stackoverflow.com/questions/804399/...ate-new-helper:
"A CodeIgniter helper is a PHP file with multiple methods. It is not a class"
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 5.10.2025 - 18:31