СМС-ки
   
Пейджер выключен!
Winston

Статистика активности
Всего полезных сообщений 7175
( 1.88% всех сообщений форума )
Имеют оценки: 0
Сообщений в день 7.3
Регистрация 23.06.2009
Наибольшая активность в PHP для начинающих
1879 сообщений в этом форуме
( 28% всех активных сообщений пользователя )
Часовой пояс пользователя 7.03.2012 - 03:02
Связь
E-mail Приват
Integrity Messenger Нет информации
Имя в AIM Нет информации
Номер ICQ Нет информации
Имя в Yahoo Нет информации
Имя в MSN Нет информации
Личное письмо Отправить
Информация
Вебсайт http://phpforum.ru
Дата рождения 26 Февраль 1992
Место жительства г. Киев
Увлечения Нет информации
Последний визит Tuesday 06th 2012f March 2012 04:03:47 PM
Счетчик Выключить счетчик и убрать из под аватарки
Дата (день) 1
Дата (месяц) 1
Дата (год) 1971
Страна Ukraine (Украина)
SKYPE Нет информации
Личные данные
Группа Эксперт
Статус
Аватар
Подпись Есть заказ? Пиши в личку.
Обучение программированию не может научить быть экспертом, также как и изучение кистей и красок не может превратить кого-либо в художника.
SQL тренажер
Репутация: 365 [подробно >>]
Активность
в доменах
сети форумов
phpforum.ru  -  220163
24seo.ru  -  57
hardapple.ru  -  11
sysadmin24.ru  -  6
hardwoman.ru  -  0
5 последних сообщений пользователя Winston
Флейм [ Кто хочет на пару минут отдохнуть и посмеяться... ]
Баян, но может кто не слышал, песня посвященная MVC
http://www.youtube.com/watch?v=YYvOGPMLVDo
Свернутый текст
Model View, Model View, Model View Controller
MVC’s the paradigm for factoring your code,
into functional segments so your brain does not explode.
To achieve reusability you gotta keep those boundaries clean,
Model on the one side, View on the other, the Controller’s in between.

Model View — It’s got three layers like Oreos do.
Model View creamy Controller

Model objects represent your applications raison d’être.
Custom classes that contain data logic and et cetra.
You create custom classes in your app’s problem domain,
then you can choose to reuse them with all the views,
but the model objects stay the same.

You can model a throttle in a manifold,
Model level two year old.
Model a bottle of fine Chardonnay.
Model all the twaddle stuff people say.
Model the coddle in a boiling eggs.
Model the waddle in Hexley’s legs.

One, two, three, four.
Model View — You can model all the models that pose for GQ.
Model View Controller

View objects tend to be controls that view and edit,
Cocoa’s got a lot of those, well written to its credit.
Take an NSTextView, hand it any old Unicode string,
the user interacts with it, it can hold most anything.
But the view don’t knows about the Model:
That string could be a phone number or the words of Aristotle.
Keep the coupling loose and so achieve a massive level of reuse.

Model View — All rendered very nicely in Aqua blue
Model View Controller

You’re probably wondering now.
You’re probably wondering how,
the data flows between Model and View.
The Controller has to mediate,
between each layer’s changing state,
to synchronize the data of the two.
It pulls and pushes every changed value.
Yeah.

Model View — mad props to the smalltalk crew!
for Model View Controller

Model View — it’s pronouced Oh Oh not Uh Uh
Model View Controller

There’s a bit more on this story,
a few more miles upon this road,
well nobody seems to get much glory
writing controller code.
Well the model is mission critical
and gorgeous is the view,
But I’m not being lazy, but sometimes it’s just crazy
how much code i write is just glue.
And it wouldn’t be so tragic,
but the code ain’t doing magic:
it’s just moving values through.
And I wish I had a dime
for every single time
I set a TextField’s stringValue.

Model View — how we’re gonna deep—six all that glue
Model View Controller

Controller’s know the Model and View very
uahh — intimately
They often are hardcoding
which is very verboten for reusability.
But now you can connect any value you select
to any view property.
And I think you’ll start binding,
then you’ll be finding less code in your source tree.
Yeah I know I was astounded,
that’s not even a rhyme.

But I think it bares repeating
all the code you won’t be needing,
when you hook it up in IB.

Model View — it even handles multiple selections too
Model View Controller

Model View — hope I get my G5 before you
Model View Controller

Yeah, yeah, yeah. Yeah.
Формы + регулярные выражения [ Вырезать всё внутри ссылки кроме картинки ]
Типа этого?
$str = '<a href="/href.html">Текст<img src="blabla.jpg">Текст</a>

<a href="/href.html">Текст<img src="blabla.jpg">Текст</a>

<a href="/href.html"><img src="blabla.jpg"></a> <a href="/href.html"><img src="blabla.jpg"></a>

<a href="/href.html">Текст Текст</a>
'
;
echo preg_replace('#<a[^>]+>.*(<img[^>]+>).*</a>|<a[^>]+>.*</a>#U', "$1", $str);
Услуги [ Репетитор PHP ]
И меня rolleyes.gif
Флейм [ Кто хочет на пару минут отдохнуть и посмеяться... ]
http://www.youtube.com/watch?feature=playe...d&v=fL6gL1vOgeU
Дизайн и верстка [ Спрятать атрибут title тэга img ]
При onmouseover на элементе, удалять title
<( назад )